node-automator
v1.4.5
Published
Execute automation with yaml configuration(compatible with json)
Downloads
45
Readme
Tutorial
Install the dependencies
$ npm install
Node
$ node . ./examples/print_env.yml
Npx
You can pass encoded configuration content instead of a file path
function encode(input) {
return btoa(unescape(encodeURIComponent(input)))
}
var configuration = `
- type: print
data:
content: Hello, I'm <<USERNAME>>
`;
console.log(encode(configuration));
// output: Ci0gdHlwZTogcHJpbnQKICBkYXRhOgogICAgY29udGVudDogSGVsbG8sIEknbSA8PFVTRVJOQU1FPj4K
then you can use npx to run any configuration
npx node-automator Ci0gdHlwZTogcHJpbnQKICBkYXRhOgogICAgY29udGVudDogSGVsbG8sIEknbSA8PFVTRVJOQU1FPj4K