node-automator

1.4.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i node-automator

Weekly Downloads

50

Version

1.4.2

License

ISC

Unpacked Size

476 kB

Total Files

179

Last publish

Collaborators

  • tsubasayeung