Secret template engine.
npm install -S @jswork/next-secret-tmpl
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
Code released under the MIT license.