1 | # has-bigints <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
---|
2 |
|
---|
3 | [![github actions][actions-image]][actions-url]
|
---|
4 | [![coverage][codecov-image]][codecov-url]
|
---|
5 | [![dependency status][deps-svg]][deps-url]
|
---|
6 | [![dev dependency status][dev-deps-svg]][dev-deps-url]
|
---|
7 | [![License][license-image]][license-url]
|
---|
8 | [![Downloads][downloads-image]][downloads-url]
|
---|
9 |
|
---|
10 | [![npm badge][npm-badge-png]][package-url]
|
---|
11 |
|
---|
12 | Determine if the JS environment has BigInt support.
|
---|
13 |
|
---|
14 | ## Example
|
---|
15 |
|
---|
16 | ```js
|
---|
17 | var hasBigInts = require('has-bigints');
|
---|
18 |
|
---|
19 | hasBigInts() === true; // if the environment has native BigInt support. Not polyfillable, not forgeable.
|
---|
20 | ```
|
---|
21 |
|
---|
22 | ## Tests
|
---|
23 | Simply clone the repo, `npm install`, and run `npm test`
|
---|
24 |
|
---|
25 | [package-url]: https://npmjs.org/package/has-bigints
|
---|
26 | [npm-version-svg]: https://versionbadg.es/inspect-js/has-bigints.svg
|
---|
27 | [deps-svg]: https://david-dm.org/inspect-js/has-bigints.svg
|
---|
28 | [deps-url]: https://david-dm.org/inspect-js/has-bigints
|
---|
29 | [dev-deps-svg]: https://david-dm.org/inspect-js/has-bigints/dev-status.svg
|
---|
30 | [dev-deps-url]: https://david-dm.org/inspect-js/has-bigints#info=devDependencies
|
---|
31 | [npm-badge-png]: https://nodei.co/npm/has-bigints.png?downloads=true&stars=true
|
---|
32 | [license-image]: https://img.shields.io/npm/l/has-bigints.svg
|
---|
33 | [license-url]: LICENSE
|
---|
34 | [downloads-image]: https://img.shields.io/npm/dm/has-bigints.svg
|
---|
35 | [downloads-url]: https://npm-stat.com/charts.html?package=has-bigints
|
---|
36 | [codecov-image]: https://codecov.io/gh/inspect-js/has-bigints/branch/main/graphs/badge.svg
|
---|
37 | [codecov-url]: https://app.codecov.io/gh/inspect-js/has-bigints/
|
---|
38 | [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/has-bigints
|
---|
39 | [actions-url]: https://github.com/inspect-js/has-bigints/actions
|
---|