@brazilian-utils/formatters

A collection of useful formatters

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@brazilian-utils/formatters
Minified + gzip package size for @brazilian-utils/formatters in KB

Readme

@brazilian-utils/formatters

A collection of useful formatters

Installation

# Yarn
yarn add @brazilian-utils/formatters

# npm
npm install @brazilian-utils/formatters --save

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

Usage

// named imports
import { formatCpf, formatCnpj } from '@brazilian-utils/formatters';

// UMD
formatters.formatCpf('94389575104'); // 943.895.751-04
formatters.formatCnpj('46843485000186'); // 46.843.485/0001-86

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.