Skip to content

NPM

bash
npm install next-box
typescript
import { NextBox, StorageApi } from 'next-box';

const nb = new NextBox();

nb.init((state) => {
    const api = new StorageApi(state);
    ...
});

CDN

html
<script src="
https://cdn.jsdelivr.net/npm/next-box@latest/index.min.js
"></script>
javascript
var lib = window['next-box'];
var nb = new lib.NextBox();

nb.init((state) => {
    var api = new lib.StorageApi(state);
    ...
});