2.0.4 • Published 4 years ago

@riturai/chop v2.0.4

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

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

2.0.3

4 years ago

2.0.4

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago