Skip to content

webyom/jsonnet-exec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published