you can install the npm module here
npm install chain-unofficial
Chain's Abstract Common Blockchain Coverage
Standard convention is described fully in the types.json file in the link above.
simply require the npm module at the top of the file
var chain = ;
you may specify the options you wish to make a call like so:
var chainClient =;//example callchainClientAddresses;
alternatively you can check out the comments above each function in lib if you wish to understand what each function expects and returns.