Socket
Book a DemoInstallSign in
Socket

format-object

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

format-object

util.format with keys and values

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

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

Keywords

format

FAQs

Package last updated on 23 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts