Skip to content

ruanyl/nformat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nformat

build status NPM version

simple number/string format

Installation

This module is installed via npm:

$ npm install nformat

Example Usage

var nFormat = require('nformat');
assert.equal(nFormat(12345678, '***-***:*** *'), '123-456:78');
assert.equal(nFormat(123456789, '***-***-***'), '123-456-789');

About

format string/number

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published