Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mongo/mod.ts>Bson.Long.fromString

MongoDB driver for Deno
Extremely Popular
Go to Latest
method Bson.Long.fromString
Re-export
import { Bson } from "https://deno.land/x/mongo@v0.31.1/mod.ts";
const { Long } = Bson;

Returns a Long representation of the given string, written using the specified radix.

Parameters

str: string
  • The textual representation of the Long
optional
unsigned: boolean
  • Whether unsigned or not, defaults to signed
optional
radix: number
  • The radix in which the text is written (2-36), defaults to 10

Returns

Long

The corresponding Long value