0.0.1-alpha • Published 5 years ago
dnai-node-plugin v0.0.1-alpha
dnai-node-plugin
Node.JS plugin for DNAI solution
Installation
1) Clone the project
```bash
npm install dnai-node-plugin
```
or
```bash
yarn add dnai-node-plugin
```
Usage
You must launch DNAI Server and CoreDaemon before you can launch the plugin.
Node (es6)
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);
});
Node (es5)
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);
});
API
Table of Contents
0.0.1-alpha
5 years ago