1.0.2 • Published 7 years ago
format-object v1.0.2
format-object
util.format
with object instead of argument list.
Installation
$ npm install --save format-object
Usage
const format = require('format-object');
format('Hello, :name', {name: 'Joe'});
// => 'Hello, Joe'
API
formatObject(input, params)
input
Type: string
Input string.
params
Type: object
Object of params to replace.
License
MIT © Vadim Demedes