Node-Trans
Provide a simple interface to work with trans from nodejs
Install
npm install --save node-trans
Limitations
Currently not support transinfo because of its returned format is different from sql trans.
API
There are 3 classes exported by this lib:
Client
: handle connections to the actual trans server and executecommand
Command
: create trans commandsParser
: handle outputs from trans server and parse them to JS Objects
Example:
var trans = ;var client = 'phoenix' 31005;var command = 'load_ad_info';var params = transCommand;// execute it!client