setup

install nightmare

npm install puppeteer

configure

create config.json at same directory of app.js

touch config.json

configure config.json

{
    "account": "your CNS account name",
    "password": "your CNS password"
}

execute

node app.js