0.2.5 • Published 8 years ago

phone-number-jp v0.2.5

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

phone-number-jp

npm version Build Status codecov dependencies Status

Installation

npm install phone-number-jp

Basic usage

You can split the phone number.

import splitter from 'phone-number-jp';

const results = splitter.split('0768223333');

console.log(results[0]); // 0768 
console.log(results[1]); // 22
console.log(results[2]); // 3333

You can format the phone number.

import splitter from 'phone-number-jp';

const result = splitter.format('0768223333');

console.log(result); // 0768-22-3333

Run the test

npm install
npm run instrument
npm test
0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago