@fiquu/cl-rut
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

@fiquu/cl-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 12, 14 and NPM 6.

Installation

npm i @fiquu/cl-rut

Usage

Node.js

Import it into you projects as '@fiquu/cl-rut':

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

Examples

import clRut from '@fiquu/cl-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.

Package Sidebar

Install

npm i @fiquu/cl-rut

Weekly Downloads

2

Version

4.0.0

License

MIT

Unpacked Size

16.7 kB

Total Files

7

Last publish

Collaborators

  • stgogm