
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Brazilian Faker Data Generator - Gerador de dados para o Brasil. Fork do faker para pt_BR com extensão para CNPJ, CPF, RG, etc.
Tamnil Saito Jr. < tamnil@gmail.com >
Fork baseado no Faker.js para implementação no Brasil em língua portuguesa. Este pacote mantém todas as definições de linguagem do Faker.js V 4.0.x. o idioma principal foi alterado de en para "pt_BR" , e fallback para "en". Portanto a língua nativa do faker-br se torna o português, com fallback para ingles que possui implementaçoes não disponiveis nas outras linguagens As funçoẽs nativas do faker foram mantidas.
npm install faker-br
para aplicaçoes em linha de comando:
$ npm install -g faker-br
$ echo meu cpf é `faker-br br.cpf`
meu cpf é 65444122529
gerador de CPF
gerador de CNPJ
gerador de cartão de crédito válido
Aumento nos nomes em português, reduzindo probabilidade de colisão de nomes-sobrenomes, resultantes combinação
A fazer:
A geração de cartao de credito no faker.js, gera numeros não validados. O faker-br usa geração de numeros válidos por "Luhn algorithm -Mod 10"
A medida do possível, este módulo respeita a estrutura do faker.js (4.0.x) permitindo a substituição direta:
// original
// const faker = require('faker');
// usando faker-br
const faker = require('faker-br');
var faker = require('faker-br');
let meuCpf = faker.br.cpf();
As funçoes básicas são do faker 4.1 (https://github.com/Marak/faker.js).
<script src = "faker-br.js" type = "text/javascript"></script>
var faker = require('faker-br');
var randomcpf = faker.br.cpf();
var randomCnpj = faker.br.cnpj();
console.log(faker.br.cnpj()) ;
Namespace exclusivo para campos brasileiros.
.br.cpf()
.br.cnpj()
name.gender name.firstname (extended) (extended: 2756 items, original:91 ) name.male_first_name (new) (extended: 2043 items, original:0 ) name.female_first_name (new) (extended: 713 items,original:0 ) name.name (direct imnport) name.gender (new) name.prefix (new) name.title (translated)
commerce: color,department.product name name: gender prefix
br
address
commerce
company
database
date
fake
finance
hacker
helpers
image
internet
lorem
name
phone
random
system
By default, requiring faker will include all locale data.
In a production environment, you may only want to include the locale data for a specific set of locales.
// loads only de locale
var faker-br = require('faker/locale/de');
If you want consistent results, you can set your own seed:
faker.seed(123);
us of version `v2.0.0` faker-br has support for multiple localities.
The default language locale is set to English.
Setting a new locale is simple:
```js
// sets locale to de
faker.setLocale("de");
// or
faker.locale = "de";
var firstRandom = faker.random.number();
// Setting the seed again resets the sequence. faker.seed(123);
var secondRandom = faker.random.number();
console.log(firstRandom === secondRandom);
## Tests
npm install .
make test
You can view a code coverage report generated in coverage/lcov-report/index.html.
## Building faker-br
faker-br uses [gulp](http://gulpjs.com/) to automate it's build process. Running the following build command will generate new browser builds, documentation, and code examples for the project.
npm run-script build
## Building JSDocs
npm run-script doc
## Maintainer
#### Tamnil Saito Junior <tamnil@gmail.com>
Faker-br - Copyright (c) 2018
Tamnil Saito Junior
http://github.com/tamnil/faker-br/
Faker-br was forked by and has used data definitions from:
* http://github.com/marak/faker.js/
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------------------------------
Permissão é concedida, gratuitamente, a qualquer pessoa que obtiver
uma cópia deste software e dos arquivos de documentação associados
"Software"), para lidar com o Software sem restrições, incluindo
sem limitação os direitos de usar, copiar, modificar, mesclar, publicar,
distribuir, sublicenciar e / ou vender cópias do Software, e para
permitir que pessoas a quem o Software é fornecido façam isso, sujeitas a
as seguintes condições:
O aviso de copyright acima e este aviso de permissão devem ser
incluído em todas as cópias ou partes substanciais do Software.
O SOFTWARE É FORNECIDO "COMO ESTÁ", SEM GARANTIA DE QUALQUER TIPO,
EXPRESSA OU IMPLÍCITA, INCLUINDO, MAS NÃO SE LIMITANDO ÀS GARANTIAS
COMERCIABILIDADE, ADEQUAÇÃO A UM FIM ESPECÍFICO E
NÃO INFRAÇÃO. EM NENHUM CASO, OS AUTORES OU OS TITULARES DOS DIREITOS DE AUTOR
RESPONSÁVEL POR QUALQUER REIVINDICAÇÃO, DANOS OU OUTRAS RESPONSABILIDADES, QUER EM AÇÃO
CONTRATO, DELITO OU DE OUTRA FORMA, DECORRENTE DE, FORA OU EM CONEXÃO
COM O SOFTWARE OU O USO OU OUTRAS OFERTAS NO SOFTWARE.
FAQs
Brazilian Faker Data Generator - Gerador de dados para o Brasil. Fork do faker para pt_BR com extensão para CNPJ, CPF, RG, etc.
The npm package faker-br receives a total of 12,377 weekly downloads. As such, faker-br popularity was classified as popular.
We found that faker-br demonstrated a healthy version release cadence and project activity because the last version was released less than 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.