UNPKG

@loaders.gl/bson

Version:

Framework-independent loader for JSON and streaming JSON formats

9 lines (8 loc) 259 B
// loaders.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import * as BSON from 'bson'; export function parseBSONSync(value, options) { const parsedData = BSON.deserialize(new Uint8Array(value), options); return parsedData; }