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)
I
BinaryExtended
No documentation available
I
BinaryExtendedLegacy
No documentation available
T
BinarySequence
No documentation available
N
BSON
No documentation available
I
BSON.BinaryExtended
No documentation available
I
BSON.BinaryExtendedLegacy
No documentation available
T
BSON.BinarySequence
No documentation available
c
BSON.BSONError
No documentation available
c
BSON.BSONOffsetError
No documentation available
c
BSON.BSONRegExp

A class representation of the BSON RegExp type.

I
BSON.BSONRegExpExtended
No documentation available
I
c
BSON.BSONRuntimeError
No documentation available
c
BSON.BSONSymbol

A class representation of the BSON Symbol type.

I
BSON.BSONSymbolExtended
No documentation available
T
v
BSON.BSONType
No documentation available
c
BSON.BSONValue
No documentation available
c
BSON.BSONVersionError
No documentation available
f
BSON.calculateObjectSize

Calculate the bson size for a passed in Javascript object.

T
BSON.CalculateObjectSizeOptions
No documentation available
c
BSON.Code

A class representation of the BSON Code type.

I
BSON.CodeExtended
No documentation available
c
BSON.DBRef

A class representation of the BSON DBRef type.

I
BSON.DBRefLike
No documentation available
I
BSON.Decimal128Extended
No documentation available
f
BSON.deserialize

Deserialize data as BSON.

f
BSON.deserializeStream

Deserialize stream data as BSON documents.

I
BSON.Document
No documentation available
c
BSON.Double

A class representation of the BSON Double type.

I
BSON.DoubleExtended
No documentation available
v
T
BSON.EJSONOptions
No documentation available
c
BSON.Int32

A class representation of a BSON Int32 type.

I
BSON.Int32Extended
No documentation available
I
BSON.LongExtended
No documentation available
T
BSON.LongWithoutOverrides
No documentation available
v
BSON.LongWithoutOverridesClass
No documentation available
c
BSON.MaxKey

A class representation of the BSON MaxKey type.

I
BSON.MaxKeyExtended
No documentation available
c
BSON.MinKey

A class representation of the BSON MinKey type.

I
BSON.MinKeyExtended
No documentation available
I
BSON.ObjectIdExtended
No documentation available
I
BSON.ObjectIdLike
No documentation available
v
BSON.onDemand
No documentation available
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.

I
BSON.TimestampExtended
No documentation available
T
BSON.TimestampOverrides
No documentation available
T
BSON.UUIDExtended
No documentation available
T
BSONElement
No documentation available
c
BSONError
No documentation available
c
BSONOffsetError
No documentation available
c
BSONRegExp

A class representation of the BSON RegExp type.

I
BSONRegExpExtended
No documentation available
I
BSONRegExpExtendedLegacy
No documentation available
c
BSONRuntimeError
No documentation available
c
BSONSymbol

A class representation of the BSON Symbol type.

I
BSONSymbolExtended
No documentation available
T
v
BSONType
No documentation available
c
BSONValue
No documentation available
c
BSONVersionError
No documentation available
f
calculateObjectSize

Calculate the bson size for a passed in Javascript object.

T
CalculateObjectSizeOptions
No documentation available
c
Code

A class representation of the BSON Code type.

I
CodeExtended
No documentation available
c
DBRef

A class representation of the BSON DBRef type.

I
DBRefLike
No documentation available
I
Decimal128Extended
No documentation available
f
deserialize

Deserialize data as BSON.

f
deserializeStream

Deserialize stream data as BSON documents.

I
Document
No documentation available
c
Double

A class representation of the BSON Double type.

I
DoubleExtended
No documentation available
v
EJSON
No documentation available
f
EJSONdeserialize

Deserializes an Extended JSON object into a plain JavaScript object with native/BSON types

T
EJSONOptions
No documentation available
f
EJSONserialize

Serializes an object to an Extended JSON string, and reparse it as a JavaScript object.

T
InspectFn
No documentation available
c
Int32

A class representation of a BSON Int32 type.

I
Int32Extended
No documentation available
I
LongExtended
No documentation available
T
LongWithoutOverrides
No documentation available
v
LongWithoutOverridesClass
No documentation available
c
MaxKey

A class representation of the BSON MaxKey type.

I
MaxKeyExtended
No documentation available
c
MinKey

A class representation of the BSON MinKey type.

I
MinKeyExtended
No documentation available
I
ObjectIdExtended
No documentation available
I
ObjectIdLike
No documentation available
v
onDemand
No documentation available
f
parse

Parse an Extended JSON string, constructing the JavaScript value or object described by that string.

f
serialize

Serialize a Javascript object.

f
serializeWithBufferAndIndex

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

f
setInternalBufferSize

Sets the size of the internal serialization buffer.

f
stringify

Converts a BSON document to an Extended JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.

I
TimestampExtended
No documentation available
T
TimestampOverrides
No documentation available
T
UUIDExtended
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.