nodevct
v0.1.1
Published
ValueCyber VCT NodeJS API
Downloads
52
Maintainers
Readme
Description
The offical VCT Node API for Node.js
Requirements
- Node: v8.10.0+
- NPM: 5.4.0+
Installation
$ npm install nodevct --save
Using Node VCT
Sample code
let NodeVCT = require('nodevct');
// methods
let vct = new NodeVCT({
host: '127.0.0.1', // default 127.0.0.1
port: 7055, // default 7055
secure: false // default false
});
// Devops Client
// query
var res = await vct.devops.query({
name: 'contractname',
method: 'count',
args: []
});
console.log(res);
// invoke
var res = await vct.devops.invoke({
name: 'contractname',
method: 'invoke',
args: []
});
console.log(res);