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 }));