# arg.js

> Utility functions for Argentina-related stuff (banks, IDs, phones, etc.)

Latest version **1.1.7** (published 2021-10-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install arg.js
pnpm add arg.js
yarn add arg.js
bun add arg.js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.7 |
| Published | 2021-10-03 |
| First published | 2016-04-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 1 |
| Unpacked size | 20.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 70 |
| Author | maria ines parnisari |
| Maintainers | miparnisari |
| Keywords | argentina, cbu, cuit, dni, phone |

## Links

- npm: https://www.npmjs.com/package/arg.js
- Repository: https://github.com/miparnisari/arg.js
- Homepage: https://github.com/miparnisari/arg.js#readme
- Issues: https://github.com/miparnisari/arg.js/issues
- npm.io page: https://npm.io/package/arg.js

## Dependencies (1)

- [google-libphonenumber](https://npm.io/package/google-libphonenumber.md) ^2.0.19

## Recent versions

- 1.1.7 (latest) — 2021-10-03
- 1.1.6 — 2020-04-13
- 1.1.5 — 2019-08-02
- 1.1.4 — 2019-06-13
- 1.1.3 — 2018-12-22
- 1.1.2 — 2018-12-15
- 1.1.1 — 2018-01-08
- 1.1.0 — 2017-12-17
- 1.0.7 — 2017-09-10
- 1.0.6 — 2017-09-10
- 1.0.5 — 2016-10-03
- 1.0.4 — 2016-07-09
- 1.0.3 — 2016-05-25
- 1.0.2 — 2016-05-04
- 1.0.1 — 2016-04-26
- … 1 more at https://npm.io/package/arg.js/versions

## README

arg.js
===

![npm-version](https://img.shields.io/npm/v/arg.js.svg)
![build-status](https://travis-ci.org/miparnisari/arg.js.svg?branch=master)
![download-count](https://img.shields.io/npm/dm/arg.js.svg)
![dev-deps](https://david-dm.org/miparnisari/arg.js.svg)
[![Known Vulnerabilities](https://snyk.io/test/github/miparnisari/arg.js/badge.svg?targetFile=package.json)](https://snyk.io/test/github/miparnisari/arg.js?targetFile=package.json)

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/).
1. Run `npm install --save arg.js`.

## Usage

  ```javascript
  // 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`.
1. To build the documentation run `gulp doc`.
1. To view the documentation go to `docs/gen/index.html`.

---
_Source: https://npm.io/package/arg.js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
