jsonnet-exec

0.1.0 • Public • Published

jsonnet-exec

A nodejs child_process.exec and child_process.execSync wrapper for jsonnet cmdline tool

var jsonnetExec = require('jsonnet-exec');
 
jsonnetExec.exec("/path/to/file.jsonnet", function(error, stdout, stderror) {
    if (!error) {
        console.log(stdout);
    }
});
 
var stdout = jsonnetExec.execSync("-e '{ x: 1 , y: self.x + 1 } { x: 10 }'");
console.log stdout.toString();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i jsonnet-exec

Weekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • webyom