phone-number-jp
v0.2.5
Published
The phone number splitter for Japanese
Readme
phone-number-jp
Installation
npm install phone-number-jpBasic 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]); // 3333You can format the phone number.
import splitter from 'phone-number-jp';
const result = splitter.format('0768223333');
console.log(result); // 0768-22-3333Run the test
npm install
npm run instrument
npm test