@riturai/chop

2.0.4 • Public • Published

chop

#Introduction This package can be used to render dynamic template. It returns a function and when function is called using a data object, it will replace keys of object found in template with value and return updated template.

#Limitation As of now, it only supports string and number data type. It will throw error for other data types.

Usage

npm i @riturai/chop

const template = require('@riturai/chop/template.chop');

console.log(template({ username: 'Morty', age: 12 }));

Readme

Keywords

none

Package Sidebar

Install

npm i @riturai/chop

Weekly Downloads

0

Version

2.0.4

License

MIT

Unpacked Size

3.69 kB

Total Files

9

Last publish

Collaborators

  • riturai