Node.JS plugin for DNAI solution
-
Clone the project
npm install dnai-node-plugin
or
yarn add dnai-node-plugin
You must launch DNAI Server and CoreDaemon before you can launch the plugin.
import DNAIProject from 'dnai-node-plugin';
const dnai = new DNAIProject('127.0.0.1', 13300, { verbose: true });
dnai.init(pathToDNAIFile).then((AIArray) => {
console.log(AIArray);
});
var DNAIProject = require('dnai-node-plugin').default;
var dnai = new DNAIProject('127.0.0.1', 13300, { verbose: true });
dnai.init(pathToDNAIFile).then(function(AIArray) {
console.log(AIArray);
});