41bf0515df194d22125fada3e390a26f4ffa0ed2be9d4cd61d86b32356dcf3ede9ba2f04e42bfdc0e330101cfad0c456f8607edb14bf9bf6481cb561f2b5e7 1.7 KB

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