Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.51 KB

README.md

File metadata and controls

53 lines (35 loc) · 1.51 KB

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.