Sign Up for Free

RunKit +

Try any Node.js package right in your browser

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:

require("o3-dapi-core/package.json"); // o3-dapi-core is a peer dependency. var o3DapiOnt = require("o3-dapi-ont")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

o3-dapi-ont v0.4.0

Ontology Plugin for o3-dapi

o3-dapi-ont

Ontology Plugin for o3-dapi

Requires o3-dapi-core to operate.

Usage

In a browser - cdn

<script src="https://cdn.jsdelivr.net/npm/o3-dapi-ont/lib/o3-dapi-ont.min.js"></script>
window.o3dapiOnt

Install via npm npm version

npm i --save o3-dapi-ont

or

yarn add o3-dapi-ont
var o3dapiOnt = require('o3-dapi-ont');

import o3dapiOnt from 'o3-dapi-ont';

Example

import o3dapi from 'o3-dapi-core';
import o3dapiOnt from 'o3-dapi-ont';

o3dapi.initPlugins([o3dapiOnt]);

o3dapi.ONT.getNetworks()
.then(networks => console.log(networks));
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free