1.0.0 • Published 2 years ago
@jswork/tmpl-type v1.0.0
tmpl-type
Get tmpl type.
installation
npm install @jswork/tmpl-type
usage
import tmplType from '@jswork/tmpl-type';
tmplType('abc is {0}, name is {1}'); // SIMPLE
tmplType('abc is {age}, name is {person.name}'); // SIMPLE
tmplType('abc is ${name}'); // LITERAL
tmplType('abc is ${{env.home}}'); // DOUBLE
tmplType('abc is aric.'); // undefined
license
Code released under the MIT license.
1.0.0
2 years ago