dotbars

Use Handlebars to generate dotfiles

Usage no npm install needed!

<script type="module">
  import dotbars from 'https://cdn.skypack.dev/dotbars';
</script>

README

Dotbars

Use Handlebars to generate dotfiles

usage

npm install dotbars
const dotbars = require('dotbars');

const template = dotbars`
digraph G {
  {{#each list}}
    {{this}} -> t;
  {{/each}}
}
`;

console.log(template({
  deps: [
    'a1',
    'b1',
    'c1'
  ]
}));
node file.js | dot -Tpng > out.png