JSPM

@brazilian-utils/format-cpf

0.1.8
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 363
  • Score
    100M100P100Q106583F
  • License MIT

Return CPF formatted with mask.

Package Exports

  • @brazilian-utils/format-cpf

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@brazilian-utils/format-cpf) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@brazilian-utils/format-cpf

Return CPF formatted with mask.

Installation

# Yarn
yarn add @brazilian-utils/format-cpf

# npm
npm install @brazilian-utils/format-cpf --save

# UMD
<script type='text/javascript' src='https://unpkg.com/@brazilian-utils/format-cpf/dist/index.umd.js'></script>

Usage

import formatCpf from '@brazilian-utils/format-cpf';

formatCpf('943'); // 943
formatCpf('9438'); // 943.8
formatCpf('943895751'); // 943.895.751
formatCpf('94389575104'); // 943.895.751-04