Skip to content

bennu/commons-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Commons-js

A TypeScript utility package for validating and formatting Chilean identification and business data.

Version TypeScript Downloads Bundle Size Test Coverage License

📋 Features

  • Zero Dependencies - Lightweight and efficient implementation
  • TypeScript Native - Full type definitions and type safety

🚀 Installation

# Using npm
npm install @bennu/common-js

# Using yarn
yarn add @bennu/common-js

# Using pnpm
pnpm add @bennu/common-js

💻 Usage

JavaScript (CommonJS)

const { isValidRut } = require('@bennu/common-js');

// Basic validation
console.log(isValidRut('12.345.678-5')); // true

TypeScript / ES Modules

import { isValidRut} from '@bennu/common-js';

// Basic validation
console.log(isValidRut('12.345.678-5')); // true

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •