Skip to main content

BSONWriter

bson-logo

From-v3.4

Writer for BSON files.

LoaderCharacteristic
File FormatBSON
Data FormatUnstructured/JSON
File Extension.bson
Media Typeapplication/bson
File TypeBinary
Supported APIsencode, encodeSync

Usage​

import {BSONWriter} from '@loaders.gl/json';
import {encode} from '@loaders.gl/core';

const arrayBufer = await encode(data, BSONWriter);

Options​

N/A

Note: Currently passes through options to the underlying js-bson module but this may change in future versions and should not be relied upon.