parse-phone
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -242,3 +242,3 @@ const dialingCodes = [ | ||
"+1" | ||
] | ||
] | ||
@@ -245,0 +245,0 @@ module.exports = (phoneStr) => { |
{ | ||
"name": "parse-phone", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "phone string parser", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"lint": "eslint --plugin markdown --ext js,md .", | ||
"test": "mocha --check-leaks --bail --no-exit --reporter spec test/", | ||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --check-leaks --no-exit --reporter dot test/", | ||
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --check-leaks --no-exit --reporter spec test/" | ||
}, | ||
@@ -13,2 +16,11 @@ "repository": { | ||
}, | ||
"devDependencies": { | ||
"after": "0.8.2", | ||
"eslint": "3.19.0", | ||
"eslint-plugin-markdown": "1.0.0-beta.6", | ||
"express": "4.16.2", | ||
"istanbul": "0.4.5", | ||
"mocha": "2.5.3", | ||
"supertest": "1.1.0" | ||
}, | ||
"keywords": [ | ||
@@ -15,0 +27,0 @@ "phone", |
# parse-phone | ||
[![NPM Version][npm-image]][npm-url] | ||
[![NPM Downloads][downloads-image]][downloads-url] | ||
[![Build Status][travis-image]][travis-url] | ||
[![Test Coverage][coveralls-image]][coveralls-url] | ||
phone parser for country dialing code parsing from full string | ||
## Installation | ||
``` | ||
npm install parse-phone | ||
``` | ||
## Get Started | ||
``` | ||
const phoneStr = "+86188888888" | ||
const phoneParser = require('parse-phone') | ||
const recipient = phoneParser(phoneStr) | ||
const parsePhone = require('parse-phone') | ||
const recipient = parsePhone(phoneStr) | ||
@@ -16,1 +26,12 @@ { success: true, | ||
``` | ||
[npm-image]: https://img.shields.io/npm/v/parse-phone.svg | ||
[npm-url]: https://npmjs.org/package/parse-phone | ||
[travis-image]: https://img.shields.io/travis/devfans/parse-phone/master.svg | ||
[travis-url]: https://travis-ci.org/devfans/parse-phone | ||
[coveralls-image]: https://img.shields.io/coveralls/devfans/parse-phone/master.svg | ||
[coveralls-url]: https://coveralls.io/r/devfans/parse-phone?branch=master | ||
[downloads-image]: https://img.shields.io/npm/dm/parse-phone.svg | ||
[downloads-url]: https://npmjs.org/package/parse-phone | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
6571
6
271
1
37
7
1