Skip to content

afeiship/tmpl-type

Repository files navigation

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.

Releases

No releases published

Packages

No packages published