@tadashi/doc

1.0.1 • Public • Published

doc

NPM version Node.js CI Coverage Status

XO code style

Validate CPF/CNPJ.

Install

$ npm i @tadashi/doc

API

onlyNumber(c: string): Array<number>
isCnpj(c: string): boolean
isCpf(c: string): boolean

Usage

import {isCnpj, isCpf, onlyNumber} from '@tadashi/doc'

isCpf('090.885.670-93')      // => true
isCnpj('29.249.091/0001-85') // => true
onlyNumber('1.2.3')          // => [1, 2, 3]

License

MIT © Thiago Lagden

Readme

Keywords

Package Sidebar

Install

npm i @tadashi/doc

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

4.25 kB

Total Files

4

Last publish

Collaborators

  • lagden