Setup
As CLI
Run this to install Nesu as a global package:
Go to your project folder, and invoke:
The first time Nesu starts, it’ll create an empty config.json
configuration file, transformer
and last_seq
folder in your project folder. Quit Nesu by pressing Ctrl-c
and start customizing its configurations (please see details below).
As Library
Go to your node.js application project folder, and type:
Create an empty new js file, e.g.: nesu.js, and enter the following code:
Also create the config.json
configuration file in the same folder as nesu.js file above like this example below:
And finaly:
But most likely you’ll want to use a process manager like pm2.
Program will automatically create an empty config.js
file if missing. Two empty folders transformer
and last_seq
will also be created.
You might also want to change the configuration object above dynamically within your script, like this:
The value of <config>
will simply be merged with the above configuration file.
Last updated