tendo
v0.0.8
Published
Execute TenDo commands using the tendo executable via JavaScript.
Downloads
31
Readme
Tendo
Execute TenDo commands using the tendo executable via JavaScript.
Usage
Install with npm
npm install tendo --save-devvar tendo = require("tendo")
var options = {
executable: tendo.getPathToTendo(), // the path to tendo executable (can be overridden)
login: {}, // login credentials: TENTENGW, TENTENUID, TENTENPW or any other args supported via env variables
table: '', // the table to execute against
args: '', // additional tendo cmd line args such as -K -y etc.
logTenDoCmd: false, // log the full tendo command to the console
logResults: false, // log any query results to the console,
resultsAsJson: false // transform the results into json
newLineDelimiter: /\r\n|\n/ // the new line delimiter used by json transformer.
colDelimiter: ',', // the column delimiter used by the json transformer.
}
tendo.execute(options, files, function (status, results) {
// options see above
// files an array of files (each file name should start with @) or inline queries
//call back function(status, results) {
// status = true:false the operation succeeded
// an array of success results for each execution or if status is false - an error message
//}
});