npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

format-object

1.0.2

@vdemedes

npmHomeRepoSnykSocket
Downloads:1
$ npm install format-object
DailyWeeklyMonthlyYearly

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