Socket
Socket
Sign inDemoInstall

phones

Package Overview
Dependencies
3
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 2.0.0

2

index.js

@@ -12,3 +12,3 @@ 'use strict'

exports.format = function format (phone, separator) {
separator = separator == null ? ' ' : separator
separator = separator == null ? '-' : separator

@@ -15,0 +15,0 @@ var country = phone.charAt(0) === '1'

{
"name": "phones",
"main": "index.js",
"version": "1.0.1",
"version": "2.0.0",
"description": "Parse, format, and validate US phone numbers",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -53,3 +53,3 @@ # phones [![Build Status](https://travis-ci.org/bendrucker/phones.svg?branch=master)](https://travis-ci.org/bendrucker/phones)

Type: `string`
Default: `' '`
Default: `'-'`

@@ -56,0 +56,0 @@ #### `phones.validate(phone)` -> `boolean`

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc