Skip to content

Commit

Permalink
docs: update install adding deno
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoporto committed Jan 16, 2025
1 parent c435484 commit 4ab1561
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 32 deletions.
44 changes: 29 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,31 @@

JS lib to generate and validate CPF (Cadastro de Pessoas Físicas) of Brazil.

[![Release](https://img.shields.io/npm/v/gerador-validador-cpf.svg?style=flat-square&label=release)](/~https://github.com/tiagoporto/gerador-validador-cpf/releases)
[![NPM Version](https://img.shields.io/npm/v/gerador-validador-cpf?style=for-the-badge&logo=npm&label=gerador-validador-cpf)](https://www.npmjs.com/package/gerador-validador-cpf)
[![JSR Version](https://img.shields.io/jsr/v/%40tiagoporto/gerador-validador-cpf?style=for-the-badge&logo=jsr&label=@tiagoporto/gerador-validador-cpf)](https://jsr.io/@tiagoporto/gerador-validador-cpf)

![npm type definitions](https://img.shields.io/npm/types/gerador-validador-cpf.svg?style=flat-square)
[![npm bundle size](https://img.shields.io/bundlephobia/min/gerador-validador-cpf?style=flat-square)](https://bundlephobia.com/package/gerador-validador-cpf)
[![Downloads](https://img.shields.io/npm/dm/gerador-validador-cpf.svg?style=flat-square)](https://www.npmjs.com/package/gerador-validador-cpf)

## Docs 📚
## 📚 Docs

Read in other languages: [English](/~https://github.com/tiagoporto/gerador-validador-cpf/blob/main/packages/gerador-validador-cpf/README.en.md), [Español](/~https://github.com/tiagoporto/gerador-validador-cpf/blob/main/packages/gerador-validador-cpf/README.es.md) e [Português(Brasil)](/~https://github.com/tiagoporto/gerador-validador-cpf/blob/main/packages/gerador-validador-cpf/README.md)

## Status ✅
## ✅ Status

![Website](https://img.shields.io/website?logo=githubpages&style=flat-square&url=https://tiagoporto.github.io/gerador-validador-cpf)
[![W3C Validation](https://img.shields.io/w3c-validation/html.svg?style=flat-square&targetUrl=https://tiagoporto.github.io/gerador-validador-cpf/)](https://validator.nu/?doc=https%3A%2F%2Ftiagoporto.github.io%2Fgerador-validador-cpf)
[![Docs GA Workflow Status](https://img.shields.io/github/actions/workflow/status/tiagoporto/gerador-validador-cpf/check-docs.yml?label=docs&logo=githubactions&logoColor=white&style=flat-square)](/~https://github.com/tiagoporto/gerador-validador-cpf/actions/workflows/check-docs.yml)
[![Checks GA Workflow Status](https://img.shields.io/github/actions/workflow/status/tiagoporto/gerador-validador-cpf/checks.yml?label=checks&logo=githubactions&logoColor=white&style=flat-square)](/~https://github.com/tiagoporto/gerador-validador-cpf/actions/workflows/checks.yml)
[![Tests GA Workflow Status](https://img.shields.io/github/actions/workflow/status/tiagoporto/gerador-validador-cpf/unit-tests.yml?label=unit%20tests&logo=githubactions&logoColor=white&style=flat-square)](/~https://github.com/tiagoporto/gerador-validador-cpf/actions/workflows/unit-tests.yml)
[![Coverage Status](https://img.shields.io/coverallsCoverage/github/tiagoporto/gerador-validador-cpf.svg?logo=coveralls&style=flat-square)](https://coveralls.io/github/tiagoporto/gerador-validador-cpf)
[![E2E Tests GA Workflow Status](https://img.shields.io/github/actions/workflow/status/tiagoporto/gerador-validador-cpf/e2e-tests.yml?label=e2e%20tests&logo=githubactions&logoColor=white&style=flat-square)](/~https://github.com/tiagoporto/gerador-validador-cpf/actions/workflows/e2e-tests.yml)

![Website](https://img.shields.io/website?logo=githubpages&style=flat-square&url=https://tiagoporto.github.io/gerador-validador-cpf)
[![W3C Validation](https://img.shields.io/w3c-validation/html.svg?style=flat-square&targetUrl=https://tiagoporto.github.io/gerador-validador-cpf/)](https://validator.nu/?doc=https%3A%2F%2Ftiagoporto.github.io%2Fgerador-validador-cpf)

[![Coverage Status](https://img.shields.io/coverallsCoverage/github/tiagoporto/gerador-validador-cpf.svg?logo=coveralls&style=flat-square)](https://coveralls.io/github/tiagoporto/gerador-validador-cpf)
[![mutation score](https://img.shields.io/endpoint?style=flat-square&url=https://badge-api.stryker-mutator.io/github.com/tiagoporto/gerador-validador-cpf/main)](https://dashboard.stryker-mutator.io/reports/github.com/tiagoporto/gerador-validador-cpf/main)

## Stack 🧰
## 🧰 Stack

![node](https://img.shields.io/badge/Nodejs-%23339933.svg?style=for-the-badge&logo=node.js&logoColor=white)
![nvm](https://img.shields.io/badge/nvm-%23333?style=for-the-badge&logo=nvm)
Expand Down Expand Up @@ -65,22 +69,31 @@ Read in other languages: [English](/~https://github.com/tiagoporto/gerador-validad
![GitHub Actions](https://img.shields.io/badge/github%20actions-%232671E5.svg?style=for-the-badge&logo=githubactions&logoColor=white)
![GitHub Pages](https://img.shields.io/badge/Github%20Pages-%23222222?style=for-the-badge&logo=githubpages&logoColor=white)

## Playground 🎮
## 🎮 Playground

<https://tiagoporto.github.io/gerador-validador-cpf/>

## Installation 📦
## 📦 Installation

Install with npm:

```bash
npm install gerador-validador-cpf
```

Install with deno(jsr):

```bash
npm install gerador-validador-cpf --save
deno add jsr:@tiagoporto/gerador-validador-cpf
```

## Usage ➡️
## ➡️ Usage

### Generate CPF

```javascript
import { generate as generateCpf } from 'gerador-validador-cpf'
// jsr import from "@tiagoporto/gerador-validador-cpf"

const cpf = generateCpf()
console.log(cpf) // 00000000000
Expand All @@ -93,12 +106,13 @@ console.log(formattedCpf) // 000.000.000-00

```javascript
import { validate as validadeCpf } from 'gerador-validador-cpf'
// jsr import from "@tiagoporto/gerador-validador-cpf"

const isCpfValid = validadeCpf('12345678900')
const isFormattedCpfValid = validadeCpf('123.456.789-00')
```

## Development 🛠
## 🛠 Development

### Pre-requirements

Expand Down Expand Up @@ -129,18 +143,18 @@ pnpm install
pnpm start
```

## Contributing 🤝
## 🤝 Contributing

[Check how to contribute](/~https://github.com/tiagoporto/.github/blob/main/CONTRIBUTING.md).

## Donating 🤜🤛
## 🤜🤛 Donating

This project is developed on my free time, any donation is welcome.

[![GITHUB Sponsor](https://img.shields.io/badge/-github-black?logo=github)](/~https://github.com/sponsors/tiagoporto)
[![Paypal Donate](https://img.shields.io/badge/PayPal-blue?logo=paypal)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=YTDUQ8RZ2G4Q8&lc=BR&item_name=tiagoporto&item_number=geradorcpf&currency_code=BRL&bn=PP%2dDonationsBF:btn_donateCC_LG%2egif:NonHosted)
![Bitcoin](https://img.shields.io/badge/bitcoin-14iqQcwYPLBceRURHuFosGTDXxMmt3cLDp-yellow.svg?logo=bitcoin)

## License 📄
## 📄 License

This project is licensed under the [MIT License](LICENSE).
24 changes: 19 additions & 5 deletions packages/gerador-validador-cpf/README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,35 @@

JS lib to generate and validate CPF (Cadastro de Pessoas Físicas) of Brazil.

## Docs 📚
## Docs

Read in other languages: English, [Español](/~https://github.com/tiagoporto/gerador-validador-cpf/blob/main/packages/gerador-validador-cpf/README.es.md) and [Português(Brasil)](/~https://github.com/tiagoporto/gerador-validador-cpf/blob/main/packages/gerador-validador-cpf/README.md)

## Playground 🎮
## Playground

<https://tiagoporto.github.io/gerador-validador-cpf/>

## Installation 📦
## Installation

Install with npm:

```bash
npm install gerador-validador-cpf --save
npm install gerador-validador-cpf
```

## Usage ➡️
Install with deno(jsr):

```bash
deno add jsr:@tiagoporto/gerador-validador-cpf
```

## Usage

### Generate CPF

```javascript
import { generate as generateCpf } from 'gerador-validador-cpf'
// jsr import from "@tiagoporto/gerador-validador-cpf"

const cpf = generateCpf()
console.log(cpf) // 00000000000
Expand All @@ -38,7 +47,12 @@ console.log(formattedCpf) // 000.000.000-00

```javascript
import { validate as validadeCpf } from 'gerador-validador-cpf'
// jsr import from "@tiagoporto/gerador-validador-cpf"

const isCpfValid = validadeCpf('12345678900')
const isFormattedCpfValid = validadeCpf('123.456.789-00')
```

## License

This project is licensed under the [MIT License](LICENSE).
24 changes: 19 additions & 5 deletions packages/gerador-validador-cpf/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,35 @@

JS lib para generar y validar CPF (Cadastro de Pessoas Físicas) en Brasil.

## Docs 📚
## Docs

Leer en otros idiomas: [English](/~https://github.com/tiagoporto/gerador-validador-cpf/blob/main/packages/gerador-validador-cpf/README.en.md), Español y [Português(Brasil)](/~https://github.com/tiagoporto/gerador-validador-cpf/blob/main/packages/gerador-validador-cpf/README.md)

## Playground 🎮
## Playground

<https://tiagoporto.github.io/gerador-validador-cpf/>

## Instalación 📦
## Instalación

Instalar con npm:

```bash
npm install gerador-validador-cpf --save
npm install gerador-validador-cpf
```

## Uso ➡️
Instalar con deno(jsr):

```bash
deno add jsr:@tiagoporto/gerador-validador-cpf
```

## Uso

### Generar CPF

```javascript
import { generate as generateCpf } from 'gerador-validador-cpf'
// jsr import from "@tiagoporto/gerador-validador-cpf"

const cpf = generateCpf()
console.log(cpf) // 00000000000
Expand All @@ -38,7 +47,12 @@ console.log(formattedCpf) // 000.000.000-00

```javascript
import { validate as validadeCpf } from 'gerador-validador-cpf'
// jsr import from "@tiagoporto/gerador-validador-cpf"

const isCpfValid = validadeCpf('12345678900')
const isFormattedCpfValid = validadeCpf('123.456.789-00')
```

## License

Este proyecto está licenciado bajo la licencia MIT. [MIT License](LICENSE).
24 changes: 19 additions & 5 deletions packages/gerador-validador-cpf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,35 @@

Biblioteca JS para gerar e validar CPF (Cadastro de Pessoas Físicas) do Brasil.

## Docs 📚
## Docs

Leia em outros idiomas: [English](/~https://github.com/tiagoporto/gerador-validador-cpf/blob/main/packages/gerador-validador-cpf/README.en.md), [Español](/~https://github.com/tiagoporto/gerador-validador-cpf/blob/main/packages/gerador-validador-cpf/README.es.md) e Português(Brasil)

## Playground 🎮
## Playground

<https://tiagoporto.github.io/gerador-validador-cpf/>

## Instalação 📦
## Instalação

Instalação com npm:

```bash
npm install gerador-validador-cpf --save
npm install gerador-validador-cpf
```

## Uso ➡️
Instalação com deno(jsr):

```bash
deno add jsr:@tiagoporto/gerador-validador-cpf
```

## Uso

### Gerando CPF

```javascript
import { generate as generateCpf } from 'gerador-validador-cpf'
// jsr import from "@tiagoporto/gerador-validador-cpf"

const cpf = generateCpf()
console.log(cpf) // 00000000000
Expand All @@ -38,7 +47,12 @@ console.log(formattedCpf) // 000.000.000-00

```javascript
import { validate as validadeCpf } from 'gerador-validador-cpf'
// jsr import from "@tiagoporto/gerador-validador-cpf"

const isCpfValid = validadeCpf('12345678900')
const isFormattedCpfValid = validadeCpf('123.456.789-00')
```

## Licencia

Este proyecto está licenciado bajo la [licencia MIT](LICENSE).
4 changes: 2 additions & 2 deletions site/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ export const Header = () => {
<p>{t('header.libInfo')}</p>

<CopyToClipboard
text="npm install gerador-validador-cpf --save"
text="npm install gerador-validador-cpf"
onCopy={handleCopy}
>
<SyntaxHighlighter
language="base"
style={github}
className={styles.copy}
>
npm install gerador-validador-cpf --save-dev
npm install gerador-validador-cpf
</SyntaxHighlighter>
</CopyToClipboard>

Expand Down

0 comments on commit 4ab1561

Please sign in to comment.