🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@fiquu/cl-rut

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fiquu/cl-rut

Chilean RUT utils for Node.js and the browser.

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
12
500%
Maintainers
1
Weekly downloads
 
Created
Source

@fiquu/cl-rut Build Status

Chilean RUT utils for Node.js and the browser.

Requirements

This library has been tested with Node.js 12.x.

Installation

npm i @fiquu/cl-rut

Usage

Node.js

Require it into you projects as 'cl-rut':

const clRut = require('cl-rut');

Browser

You can require it and use a bundler or use the prebuilt standalone versions on the dist folder:

<script src="../path/to/scripts/cl-rut.js"></script>

Or use the minified version:

<script src="../path/to/scripts/cl-rut.min.js"></script>

And it will be available as window.clRut.

Examples

const clRut = require('fi-rut');
const value = '22222222';

const calculated = clRut.calculate(value);
const verififer = clRut.verifier(value);
const isValid = clRut.validate(value);
const formatted = clRut.format(value);
const digits = clRut.digits(value);
const clean = clRut.clean(value);

Documentation

Read the library docs for the library's methods specification.

Keywords

chilean

FAQs

Package last updated on 16 Jan 2020

Did you know?

Socket

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.

Install

Related posts