1.0.1 • Published 3 years ago
@tadashi/doc v1.0.1
doc
Validate CPF/CNPJ.
Install
$ npm i @tadashi/docAPI
onlyNumber(c: string): Array<number>
isCnpj(c: string): boolean
isCpf(c: string): booleanUsage
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