🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

phone-regex

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phone-regex

Regular expression for phone numbers.

Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
5.8K
52.98%
Maintainers
1
Weekly downloads
 
Created
Source

Phone Regex

Build Status

A regular expression for matching phone numbers.

In the near future this will be likely moved to https://github.com/regexps.

Installation

npm i --save phone-regex

Usage

var phone = require('phone-regex');

phone().test('1234567890') // => true
phone().test('kljhsdf') // => false

Acknowledgements

License

MIT

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

Crafted with <3 by John Otander.

Keywords

phone

FAQs

Package last updated on 26 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts