Skip to main content
Home

web_bson builds opon js-bson. Bson is short for "Binary JSON" and is the binary-encoded serialization of JSON-like documents. You can learn more about it in the specification.

This package works with Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
70%
Published
a year ago (0.4.0)
namespace BSON

Classes

c
BSON.BSONError
No documentation available
c
BSON.BSONOffsetError
No documentation available
c
BSON.BSONRegExp

A class representation of the BSON RegExp type.

c
BSON.BSONRuntimeError
No documentation available
c
BSON.BSONSymbol

A class representation of the BSON Symbol type.

c
BSON.BSONValue
No documentation available
c
BSON.BSONVersionError
No documentation available
c
BSON.Code

A class representation of the BSON Code type.

c
BSON.DBRef

A class representation of the BSON DBRef type.

c
BSON.Double

A class representation of the BSON Double type.

c
BSON.Int32

A class representation of a BSON Int32 type.

c
BSON.MaxKey

A class representation of the BSON MaxKey type.

c
BSON.MinKey

A class representation of the BSON MinKey type.

Functions

f
BSON.calculateObjectSize

Calculate the bson size for a passed in Javascript object.

f
BSON.deserialize

Deserialize data as BSON.

f
BSON.deserializeStream

Deserialize stream data as BSON documents.

f
BSON.serialize

Serialize a Javascript object.

f
BSON.serializeWithBufferAndIndex

Serialize a Javascript object using a predefined Buffer and index into the buffer, useful when pre-allocating the space for serialization.

f
BSON.setInternalBufferSize

Sets the size of the internal serialization buffer.

Interfaces

I
BSON.BinaryExtended
No documentation available
I
BSON.BinaryExtendedLegacy
No documentation available
I
BSON.BSONRegExpExtended
No documentation available
I
I
BSON.BSONSymbolExtended
No documentation available
I
BSON.CodeExtended
No documentation available
I
BSON.DBRefLike
No documentation available
I
BSON.Decimal128Extended
No documentation available
I
BSON.Document
No documentation available
I
BSON.DoubleExtended
No documentation available
I
BSON.Int32Extended
No documentation available
I
BSON.LongExtended
No documentation available
I
BSON.MaxKeyExtended
No documentation available
I
BSON.MinKeyExtended
No documentation available
I
BSON.ObjectIdExtended
No documentation available
I
BSON.ObjectIdLike
No documentation available
I
BSON.TimestampExtended
No documentation available

Type Aliases

T
BSON.BinarySequence
No documentation available
T
BSON.CalculateObjectSizeOptions
No documentation available
T
BSON.EJSONOptions
No documentation available
T
BSON.LongWithoutOverrides
No documentation available
T
BSON.TimestampOverrides
No documentation available
T
BSON.UUIDExtended
No documentation available

Variables

T
v
BSON.BSONType
No documentation available
v
v
BSON.LongWithoutOverridesClass
No documentation available
v
BSON.onDemand
No documentation available

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@lucsoft/web-bson

Import symbol

import { BSON } from "@lucsoft/web-bson";
or

Import directly with a jsr specifier

import { BSON } from "jsr:@lucsoft/web-bson";

Add Package

pnpm i jsr:@lucsoft/web-bson
or (using pnpm 10.8 or older)
pnpm dlx jsr add @lucsoft/web-bson

Import symbol

import { BSON } from "@lucsoft/web-bson";

Add Package

yarn add jsr:@lucsoft/web-bson
or (using Yarn 4.8 or older)
yarn dlx jsr add @lucsoft/web-bson

Import symbol

import { BSON } from "@lucsoft/web-bson";

Add Package

vlt install jsr:@lucsoft/web-bson

Import symbol

import { BSON } from "@lucsoft/web-bson";

Add Package

npx jsr add @lucsoft/web-bson

Import symbol

import { BSON } from "@lucsoft/web-bson";

Add Package

bunx jsr add @lucsoft/web-bson

Import symbol

import { BSON } from "@lucsoft/web-bson";