Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
bigint-conversion
Advanced tools
Convert to/from BigInt from/to Buffer, ArrayBuffer, hex string, utf8-encoded text string.
Convert to/from non-negative integers represented with ES-2020 native JS implementation of BigInt from/to:
Buffer
(node.js) or ArrayBuffer|TypedArray
(native js),string
,string
,It provides a common interface for the conversions that works for both node.js and native javascript.
Note that there is not a directly visible
TypedArray()
constructor, but a set of typed array ones:Int8Array()
,Uint8Array()
,Uint8ClampedArray()
,Int16Array()
,Uint16Array()
,Int32Array()
,Uint32Array()
,Float32Array()
,Float64Array()
,BigInt64Array()
,BigUint64Array()
.
bigint-conversion
can be imported to your project with npm
:
npm install bigint-conversion
Then either require (Node.js CJS):
const bigintConversion = require('bigint-conversion')
or import (JavaScript ES module):
import * as bigintConversion from 'bigint-conversion'
The appropriate version for browser or node is automatically exported.
BigInt is ES-2020. In order to use it with TypeScript you should set
target
(and probably alsolib
) to at leastes2020
intsconfig.json
.
You can also download the IIFE bundle, the ESM bundle or the UMD bundle and manually add it to your project, or, if you have already installed bigint-conversion
in your project, just get the bundles from node_modules/bigint-conversion/dist/bundles/
.
FAQs
Convert to/from BigInt from/to Buffer, ArrayBuffer, hex string, utf8-encoded text string.
We found that bigint-conversion demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.