CLI template solver
Install the module with: npm install slv -g
NODE_ENV=local NODE_USERNAME=peperone NODE_PASSWORD=shh slv examples/Dockerfile
slv examples/template.html -c examples/context.json
Use with envset
:
envset production -- slv Dockerfile
(Coming soon)
- Take raw strings from CLI
- take context from CLI
(Coming soon)
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
(Nothing yet)
Copyright (c) 2015 goliatone
Licensed under the MIT license.
#!/usr/bin/env node
var i = require('interpolate');
var options = { delimiter: '{{}}' };
var processLine = function(line){ console.log(i(line, process.env, options)); };
process.stdin.resume(); process.stdin.setEncoding('utf8'); process.stdin.on('data', function(data){ processLine(data); });