@jswork/next-literal-tmpl

1.0.2 • Public • Published

next-literal-tmpl

Literals template engine like es6.

version license size download

installation

npm install -S @jswork/next-literal-tmpl

usage

import '@jswork/next-literal-tmpl';

const str = '${GITHUB_API_TOKEN} - ${afei}';
const ctx = {
  GITHUB_API_TOKEN: 'xxx-yyy-zzz',
  afei: 'zhengfei'
};
nx.literalTmpl(str, ctx);

// 'xxx-yyy-zzz - zhengfei'

license

Code released under the MIT license.

Package Sidebar

Install

npm i @jswork/next-literal-tmpl

Homepage

js.work

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

5.58 kB

Total Files

6

Last publish

Collaborators

  • afeiship