Skip to content

Commit

Permalink
package and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Agustín Bouillet authored and Agustín Bouillet committed Dec 9, 2024
1 parent 4f856a8 commit 4b63361
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ npm i telefono-argentino
yarn add telefono-argentino
```

### CDN
### CDN

#### jsDelivr

[https://www.jsdelivr.com/package/npm/telefono-argentino](https://www.jsdelivr.com/package/npm/telefono-argentino)



## Uso

```js
Expand All @@ -37,7 +36,9 @@ Retorna un array asociativo con los tipos de datos pertenecienes al número tele
```javascript
tel.getData();
```

##### Ejemplo datos de retorno

```javascript
{
area_code : "11",
Expand Down Expand Up @@ -193,7 +194,7 @@ tel.getData().format;
// '(11) 4639-1234'
```

Sin código de pais y código de área. Cómo el paréntesis queda vacío, se remueve. Los espacios y elementos agregados antes y después, no se imprimen.
Sin código de país y código de área. Cómo el paréntesis queda vacío, se remueve. Los espacios y elementos agregados antes y después, no se imprimen.

```javascript
const tel = new TelefonoArgentino(
Expand Down Expand Up @@ -246,8 +247,7 @@ tel.getData().format;
// '+54 362 4.448.012'
```


----
----

## Información geográfica

Expand Down Expand Up @@ -296,7 +296,7 @@ regionByAreaCode().then((data) => {
- https://es.wikipedia.org/wiki/Números_telefónicos_en_Argentina, Wikipedia, Números telefónicos en Argentina, 2016


---
----


[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=C5TSLQQEEE5PQ)
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "telefono-argentino",
"version": "1.2.6",
"version": "1.2.7",
"description": "Validador de números de teléfono argentinos",
"main": "./dist/telefono-argentino.js",
"directories": {
Expand All @@ -9,10 +9,6 @@
"scripts": {
"test": "jest"
},
"files": [
"LICENSE",
"README.md"
],
"repository": {
"type": "git",
"url": "git+https://github.com/agustinbouillet/telefono-argentino.git"
Expand Down

0 comments on commit 4b63361

Please sign in to comment.