1.0.2 • Published 7 years ago

format-object v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

format-object Build Status

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

1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

9 years ago