new-format

String formatting for humans.

npm install new-format
11 downloads in the last day
83 downloads in the last week
338 downloads in the last month

new-format

String formatting for humans.

Install

$ npm install new-format

Usage

var format = require('new-format')

format('Hello {0}. The weather is currently {1}°.', 'Kitty', '67')

format('Hello {name}, The weather is currently {degree}°', { name:'Kitty', degree: 67 })

npm loves you