@chonla/stringformat
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

String Format

String formatter.

Usage

const Format = require('@chonla/stringformat')
const fmt = new Format()

console.log(fmt.format('1234567890', '3-3-4')) // output 123-456-7890
console.log(fmt.format('1234567890', '3-3/4')) // output 123-456/7890

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @chonla/stringformat

Weekly Downloads

15

Version

1.0.1

License

MIT

Unpacked Size

7.9 kB

Total Files

7

Last publish

Collaborators

  • chonla