1.0.0 • Published 2 years ago

@jswork/tmpl-type v1.0.0

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

tmpl-type

Get tmpl type.

version license size download

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.