This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
o3-dapi-ont with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Ontology Plugin for o3-dapi
Requires o3-dapi-core to operate.
npm i --save o3-dapi-ont or yarn add o3-dapi-ont
var o3dapiOnt = require('o3-dapi-ont'); import o3dapiOnt from 'o3-dapi-ont';
import o3dapi from 'o3-dapi-core'; import o3dapiOnt from 'o3-dapi-ont'; o3dapi.initPlugins([o3dapiOnt]); o3dapi.ONT.getNetworks() .then(networks => console.log(networks));