Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

parse-phone

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-phone - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

.eslintrc

2

index.js

@@ -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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc