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.
A class representation of the BSON Binary type.
A class representation of the BSON Binary type.
A class representation of the BSON RegExp type.
Calculate the bson size for a passed in Javascript object.
A class representation of the BSON DBRef type.
A class representation of the BSON Decimal128 type.
Deserialize data as BSON.
Deserialize stream data as BSON documents.
A class representation of the BSON Double type.
A class representation of a BSON Int32 type.
A class representing a 64-bit integer
- MAX_UNSIGNED_VALUE
- MAX_VALUE
- MIN_VALUE
- NEG_ONE
- ONE
- TWO_PWR_24
- UONE
- UZERO
- ZERO
- __isLong__
- _bsontype
- add
- and
- comp
- compare
- div
- divide
- eq
- equals
- eqz
- fromBigInt
- fromBits
- fromBytes
- fromBytesBE
- fromBytesLE
- fromExtendedJSON
- fromInt
- fromNumber
- fromString
- fromStringStrict
- fromValue
- ge
- getHighBits
- getHighBitsUnsigned
- getLowBits
- getLowBitsUnsigned
- getNumBitsAbs
- greaterThan
- greaterThanOrEqual
- gt
- gte
- high
- inspect
- isEven
- isLong
- isNegative
- isOdd
- isPositive
- isZero
- le
- lessThan
- lessThanOrEqual
- low
- lt
- lte
- mod
- modulo
- mul
- multiply
- ne
- neg
- negate
- neq
- not
- notEquals
- or
- rem
- shiftLeft
- shiftRight
- shiftRightUnsigned
- shl
- shr
- shr_u
- shru
- sub
- subtract
- toBigInt
- toBytes
- toBytesBE
- toBytesLE
- toExtendedJSON
- toInt
- toNumber
- toSigned
- toString
- toUnsigned
- unsigned
- xor
A class representation of the BSON ObjectId type.
Serialize a Javascript object.
Serialize a Javascript object using a predefined Buffer and index into the buffer, useful when pre-allocating the space for serialization.
Sets the size of the internal serialization buffer.
A class representation of the BSON UUID type.
A class representation of the BSON RegExp type.
Calculate the bson size for a passed in Javascript object.
A class representation of the BSON Decimal128 type.
Deserialize data as BSON.
Deserialize stream data as BSON documents.
Deserializes an Extended JSON object into a plain JavaScript object with native/BSON types
Serializes an object to an Extended JSON string, and reparse it as a JavaScript object.
A class representing a 64-bit integer
- MAX_UNSIGNED_VALUE
- MAX_VALUE
- MIN_VALUE
- NEG_ONE
- ONE
- TWO_PWR_24
- UONE
- UZERO
- ZERO
- __isLong__
- _bsontype
- add
- and
- comp
- compare
- div
- divide
- eq
- equals
- eqz
- fromBigInt
- fromBits
- fromBytes
- fromBytesBE
- fromBytesLE
- fromExtendedJSON
- fromInt
- fromNumber
- fromString
- fromStringStrict
- fromValue
- ge
- getHighBits
- getHighBitsUnsigned
- getLowBits
- getLowBitsUnsigned
- getNumBitsAbs
- greaterThan
- greaterThanOrEqual
- gt
- gte
- high
- inspect
- isEven
- isLong
- isNegative
- isOdd
- isPositive
- isZero
- le
- lessThan
- lessThanOrEqual
- low
- lt
- lte
- mod
- modulo
- mul
- multiply
- ne
- neg
- negate
- neq
- not
- notEquals
- or
- rem
- shiftLeft
- shiftRight
- shiftRightUnsigned
- shl
- shr
- shr_u
- shru
- sub
- subtract
- toBigInt
- toBytes
- toBytesBE
- toBytesLE
- toExtendedJSON
- toInt
- toNumber
- toSigned
- toString
- toUnsigned
- unsigned
- xor
A class representation of the BSON ObjectId type.
Parse an Extended JSON string, constructing the JavaScript value or object described by that string.
Serialize a Javascript object.
Serialize a Javascript object using a predefined Buffer and index into the buffer, useful when pre-allocating the space for serialization.
Sets the size of the internal serialization buffer.
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.
A class representation of the BSON UUID type.