1.3.14 • Published 17 days ago

node-automator v1.3.14

Weekly downloads
-
License
ISC
Repository
-
Last release
17 days ago

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