0.0.1 β€’ Published 7 months ago

@bennu-cl/commons-js v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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.