format-object
v1.0.2
Published
util.format with keys and values
Downloads
7
Readme
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