1.0.1 • Published 4 years ago
@feizheng/next-secret-tmpl v1.0.1
next-secret-tmpl
Secret template engine.
installation
npm install -S @feizheng/next-secret-tmpl
usage
import '@feizheng/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.