miparnisari / Arg.js
🇦🇷 🛠NPM library. Validation of Argentinian bank account numbers, IDs and phone numbers
Stars: ✠52
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Arg.js
Express Typescript Boilerplate
A delightful way to building a RESTful API with NodeJs & TypeScript by @w3tecch
Stars: ✠2,293 (+4309.62%)
Mutual labels: documentation, validation
Laravel Phone
Phone number functionality for Laravel
Stars: ✠1,806 (+3373.08%)
Mutual labels: validation, phone
Aiohttp Apispec
Build and document REST APIs with aiohttp and apispec
Stars: ✠172 (+230.77%)
Mutual labels: documentation, validation
Rest Hapi
🚀 A RESTful API generator for Node.js
Stars: ✠1,102 (+2019.23%)
Mutual labels: documentation, validation
Covenant Generator
`covgen` generates a code of conduct.
Stars: ✠48 (-7.69%)
Mutual labels: documentation
Symbian Archive
A small website to archive Symbian-related dev tools & doc.
Stars: ✠46 (-11.54%)
Mutual labels: documentation
Jsdoc Baseline
An experimental, extensible template for JSDoc.
Stars: ✠51 (-1.92%)
Mutual labels: documentation
42docs
Documentation on MiniLibX and 2019 curriculum projects
Stars: ✠51 (-1.92%)
Mutual labels: documentation
Laravel Smart
Automatic Migrations, Validation and More
Stars: ✠48 (-7.69%)
Mutual labels: validation
Laravel5 Genderize Api Client
Laravel 5 client for the Genderize.io API
Stars: ✠47 (-9.62%)
Mutual labels: validation
Formik Alicante
Formik slides & demos from React Alicante
Stars: ✠47 (-9.62%)
Mutual labels: validation
Schemas
All schemas used for validation that are shared between our projects
Stars: ✠51 (-1.92%)
Mutual labels: validation
Vuesence Book
Minimalistic Vue.js based documentation system component
Stars: ✠48 (-7.69%)
Mutual labels: documentation
Docs
The API for generating high quality images from HTML/CSS.
Stars: ✠49 (-5.77%)
Mutual labels: documentation
Celebrate
A joi validation middleware for Express.
Stars: ✠1,041 (+1901.92%)
Mutual labels: validation
arg.js
This is a JavaScript library that provides utility functions to do validations of Argentinian's document numbers, identification numbers and phones.
Installation
- Install nodejs (https://nodejs.org/en/download/).
- Run
npm install --save arg.js
.
Usage
// CBUs identify a bank account
var cbu = require('arg.js').cbu;
var valid = cbu.isValid('123'); // false
// CUITs identify a person or a company
var cuit = require('arg.js').cuit;
var valid = cuit.isValid('27361705039'); //true
// DNIs identify a person (including a foreigner living in Argentina)
var doc = require('arg.js').document;
var validDni = doc.isValidDni('36111222'); //true
// Phones will be returned with the country and area code
var phones = require('arg.js').phone;
var cleanPhone = phones.clean('1556623011', '11'); //+5491156623011
Build & tests & documentation
PRs are welcome!
- To run the tests run
npm test
. - To build the documentation run
gulp doc
. - To view the documentation go to
docs/gen/index.html
.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].