@jswork/next-secret-tmpl

Secret template engine.

Usage no npm install needed!

<script type="module">
  import jsworkNextSecretTmpl from 'https://cdn.skypack.dev/@jswork/next-secret-tmpl';
</script>

README

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.