Skip to main content

Install

DBPF.js v1.1.0Docs


DBPF.js v1.1.0 / Guides / Install

Installation and Usage

This library is available on npm:

npm install dbpf.js
import { DBPF } from 'dbpf';

let file: string;
// Node.js:
file = 'path/to/file.package';
// Browser:
file = input.files[0]; // where input is an <input type="file"> element

let dbpf = await DBPF.create( file );

For more advanced usage, see the API documentation.

 

Edit this page