All Projects â†’ miparnisari â†’ Arg.js

miparnisari / Arg.js

🇦🇷 🛠 NPM library. Validation of Argentinian bank account numbers, IDs and phone numbers

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
phone
Validate phone number format
Stars: ✭ 63 (+21.15%)
Mutual labels:  validation, phone
Kraiklyn
A Hugo theme for one page documentation
Stars: ✭ 47 (-9.62%)
Mutual labels:  documentation
Covenant Generator
`covgen` generates a code of conduct.
Stars: ✭ 48 (-7.69%)
Mutual labels:  documentation
Pandora Apidoc
pandora.com API documentation
Stars: ✭ 46 (-11.54%)
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
Flask Apidoc
Adds ApiDoc support to Flask
Stars: ✭ 49 (-5.77%)
Mutual labels:  documentation
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
Validation
Simple PHP helper class for Validation.
Stars: ✭ 46 (-11.54%)
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

npm-version build-status download-count dev-deps Known Vulnerabilities

This is a JavaScript library that provides utility functions to do validations of Argentinian's document numbers, identification numbers and phones.

Installation

  1. Install nodejs (https://nodejs.org/en/download/).
  2. 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!

  1. To run the tests run npm test.
  2. To build the documentation run gulp doc.
  3. 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].