@jacobmarshall/interpolate

0.1.0 • Public • Published

@jacobmarshall/interpolate

A very simple, basic, and dumb string interpolation utility

Installation

$ npm install @jacobmarshall/interpolate

Basic Usage

import interpolate from '@jacobmarshall/interpolate';

console.log(interpolate('Hello {{message}}', {
    message: 'World'
}));

// => "Hello World"

API

interpolate (string string, object|array data [, object options]) string

Pretty self explanatory, see example above 😚

Readme

Keywords

none

Package Sidebar

Install

npm i @jacobmarshall/interpolate

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • jacobmarshall