4.0.7 • Published 1 year ago

@validatecl/rut v4.0.7

Weekly downloads
20
License
MIT
Repository
github
Last release
1 year ago

@validatecl/rut

Build Status GitHub GitHub last commit npm (scoped) npm

Dependency-free, Chilean RUT utils for Node.js and browsers (transpiled).

Requirements

This library has been tested with Node.js 16, 19 and NPM 8.

Installation

npm i @validatecl/rut
yarn add @validatecl/rut

Usage

Node.js

Import it into you projects as '@validatecl/rut':

import {
  cleanParts,
  calculate,
  verifier,
  validate,
  format,
  digits,
  clean,
} from '@validatecl/rut';

Examples

import clRut from '@validatecl/rut';

const value = '22222222';

const calculated = calculate(value);
const verifier = verifier(value);
const isValid = validate(value);
const formatted = format(value);
const parts = cleanParts(value);
const digits = digits(value);
const clean = clean(value);

Documentation

Please see the documentation page for more details.

4.0.5

1 year ago

4.0.7

1 year ago

4.0.6

1 year ago

4.0.3

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago