![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
CPF Validator, Generator e Formatter, runs both on browser and server-side. Incredibly Small 2.2KB (890bytes gziped!!).
Add the latest version of cpf-check to your package.json
.
npm install cpf-check --save
Then you can use it in your index.html
<script type="text/javascript" src="./node_modules/cpf-check/dist/cpf.min.js"></script>
// window.CPF
Or, you can import it as a module:
const CPF = require('cpf-check');
// or, in ES6
import CPF from 'cpf-check';
Works on Node, any CommonJs Env. and as an AMD modules.
The main export is a function that validates CPFs.
const CPF = require('cpf-check')
const myCpf = '676.754.677-10';
CPF(myCpf);
// true
CPF.validate(myCpf);
// true
The CPF.validate()
is an alias for the CPF()
method.
Generates valid CPFs:
CPF.generate();
// '676.754.677-10'
Parse CPFs from text strings:
const myText = 'Hey, my CPF is 676.754.677-10';
CPF.parse(myText);
// '676.754.677-10'
Format (beautify) CPF strings:
const myCpf = '67675467710';
CPF.format(myCpf);
// '676.754.677-10'
Strip (uglify) CPF strings:
const myCpf = '676.754.677-10';
CPF.strip(myCpf);
// '67675467710'
And if you find something that is not working as supposed to, please, open a PR.
If you're curious to know how this module works before implementing it, the source code is heavily commented! head to src/index.js to take a look!
Copyright (c) 2017 Marcel Coelho under the MIT license
FAQs
Validador de CPF Moderno, Isomórfico e Super Leve.
The npm package cpf-check receives a total of 311 weekly downloads. As such, cpf-check popularity was classified as not popular.
We found that cpf-check demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.