inset

0.2.4 • Public • Published

Inset

A super-simple, ultra-lightweight (330B) interpolation module

Usage

const inset = require('inset');

let sentence = inset('Hi, My name is {person.name.first} and I am {person.age}', {
  person: {
    name: {
      first: 'Mike'
    },
    age: 40
  }
});

// Hi, My name is Mike and I am 40'

Developing & Contributing

Using mocha & chaijs for simple unit tests.

NODE_ENV=development npm install

npm test

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i inset

    Weekly Downloads

    1

    Version

    0.2.4

    License

    ISC

    Unpacked Size

    7.75 kB

    Total Files

    6

    Last publish

    Collaborators

    • webmech