https://github.com/bukinoshita/cpf-prompt
CPF prompt with validation
https://github.com/bukinoshita/cpf-prompt
cli command-line cpf prompt
Last synced: 19 days ago
JSON representation
CPF prompt with validation
- Host: GitHub
- URL: https://github.com/bukinoshita/cpf-prompt
- Owner: bukinoshita
- License: mit
- Created: 2017-09-01T20:21:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-22T06:48:08.000Z (over 3 years ago)
- Last Synced: 2025-02-13T18:53:22.886Z (2 months ago)
- Topics: cli, command-line, cpf, prompt
- Language: JavaScript
- Homepage:
- Size: 3.54 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# cpf-prompt [](https://travis-ci.org/bukinoshita/cpf-prompt)
> CPF prompt with validation
## Install
```bash
$ npm install --save cpf-prompt
```## Usage
```js
const cpfPrompt = require('cpf-prompt')cpfPrompt().then(({ cpf }) => cpf)
// => '623.267.215-19'
// => It returns the CPF input.
```## Demo
## API
### cpfPrompt()
Returns a `promise`
## Related
- [credit-card-prompt](https://github.com/bukinoshita/credit-card-prompt) — Credit card prompt with validation and address lookup
## License
MIT © [Bu Kinoshita](https://bukinoshita.io)