@jswork/next-secret-tmpl

1.0.1 • Public • Published

next-secret-tmpl

Secret template engine.

version license size download

installation

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

usage

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

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

// xxx-yyy-zzz - zhengfei

license

Code released under the MIT license.

Package Sidebar

Install

npm i @jswork/next-secret-tmpl

Weekly Downloads

71

Version

1.0.1

License

MIT

Unpacked Size

4.81 kB

Total Files

5

Last publish

Collaborators

  • afeiship