Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
is-bigint
Advanced tools
Package description
The is-bigint npm package provides a simple and straightforward way to check if a given value is a BigInt. It is particularly useful in applications where distinguishing between BigInt and other numeric types is necessary for correct operation or data handling.
Check if a value is a BigInt
This feature allows you to verify whether a given value is of the BigInt type. It's useful for type checking in applications that need to handle large integers safely.
const isBigInt = require('is-bigint');
console.log(isBigInt(10n)); // true
console.log(isBigInt(10)); // false
The 'is' package offers a comprehensive set of type check utilities, including a method to check for BigInts. It covers a broader range of types compared to is-bigint, making it suitable for applications requiring extensive type validations.
Type-check provides detailed type checking capabilities, including support for BigInt. It allows for more complex type checks and validations, making it a good choice for applications with intricate data validation needs.
Changelog
v1.0.1 - 2020-11-30
28f1211
0998c64
auto-changelog
2352de6
nyc
on all tests 9c16a9a
eslint
, @ljharb/eslint-config
, auto-changelog
, object-inspect
, tape
4cd0edd
f0f4b91
7f4f46e
2d0cb9a
eslint
, @ljharb/eslint-config
, aud
0ee110e
eslint
, @ljharb/eslint-config
, has-symbols
, object-inspect
, tape
5bb7f3a
eslint
, @ljharb/eslint-config
, safe-publish-latest
, tape
d3d67d0
auto-changelog
, tape
54e270f
@ljharb/eslint-config
, tape
d82bfe7
auto-changelog
; add aud
9c34bd1
posttest
script 0690bd9
funding
field 7ca36d0
pull_request_target
event 5ffa8da
eslint
8512c2f
f2147dc
d6eff75
Readme
Is this an ES BigInt value?
var isBigInt = require('is-bigint');
assert(!isBigInt(function () {}));
assert(!isBigInt(null));
assert(!isBigInt(function* () { yield 42; return Infinity; });
assert(!isBigInt(Symbol('foo')));
assert(isBigInt(1n));
assert(isBigInt(Object(1n)));
Simply clone the repo, npm install
, and run npm test
FAQs
Is this value an ES BigInt?
The npm package is-bigint receives a total of 21,981,439 weekly downloads. As such, is-bigint popularity was classified as popular.
We found that is-bigint 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.