# validate-rut-serie

> tool to validate serie of rut, chile

Latest version **1.0.3** (published 2020-07-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install validate-rut-serie
pnpm add validate-rut-serie
yarn add validate-rut-serie
bun add validate-rut-serie
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-07-09 |
| First published | 2020-07-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 18 |
| Author | crod-inforser |
| Maintainers | crodriguez_inforser |
| Keywords | herramient, tool, rut, run, serie, documento, numero de documento, validar, validate |

## Links

- npm: https://www.npmjs.com/package/validate-rut-serie
- Repository: https://github.com/crod-inforser/validate-rut
- Homepage: https://github.com/crod-inforser/validate-rut#readme
- Issues: https://github.com/crod-inforser/validate-rut/issues
- npm.io page: https://npm.io/package/validate-rut-serie

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) ^0.19.2
- [rut.js](https://npm.io/package/rut.js.md) ^1.0.2
- [regenerator-runtime](https://npm.io/package/regenerator-runtime.md) ^0.13.5

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2020-07-09
- 1.0.2 — 2020-07-09
- 1.0.1 — 2020-07-09
- 1.0.0 — 2020-07-09

## README

# Validate rut

_Tool for validate rut with document number in Chile_

## Starting 🚀

### How to install 📋

_First install with npm_

```bash
npm i validate-rut-serie
```

_Or yarn_

```bash
yarn add validate-rut-serie
```


## Using the tool ⚙️

_First import the tool, then call the async method isValid, sending an object with rut and serie (without points), it will return an boolean_

### Example 🔩

```javascript
const { isValid } = require("validate-rut-serie")

async function tellIfIsValid() {
    const valid = await isValid({rut:"11.111.111-1", serie:"123456789"})
    console.log(valid) // return true if is valid, or false if is invalid
}

tellIfIsValid()
```

### Valid formats for serie

_The only format is 9 numbers of the number document, without points, string format_

### Valid formats for rut ⌨️

```
// valids
('18.972.631-7')
('18972631-7')
('189726317')
('9.068.826-k')
('9068826-k')
('9068826k')

// invalids
('18.972.631-0')
('18,972,631-7')
('18*972*631-7')
('18-972-631-7')
('error18.972.631-7')
('9068826-1')
('')
(189726317)
('0')
(0)

```


## Building with: 🛠️

* [rut.js](https://github.com/jlobos/rut.js#readme) - Tool for validate RUT
* [axios](https://github.com/axios/axios) - To request if the rut is valid (to chilean servers)

## Authors ✒️

* **Christian Rodriguez** - *Inforser* - [crod](mailto:crodriguez@inforser.cl)


## Licence 📄

MIT

## Thanks 🎁

* Thanks for read this readme! 📢

---
⌨️ with ❤️ for [crod-inforser](mailto:crodriguez@inforser.cl) 😊

---
_Source: https://npm.io/package/validate-rut-serie · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
