web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.3 KiB

  1. # is-core-module <sup>[![Version Badge][2]][1]</sup>
  2. [![Build Status][3]][4]
  3. [![dependency status][5]][6]
  4. [![dev dependency status][7]][8]
  5. [![License][license-image]][license-url]
  6. [![Downloads][downloads-image]][downloads-url]
  7. [![npm badge][11]][1]
  8. Is this specifier a node.js core module? Optionally provide a node version to check; defaults to the current node version.
  9. ## Example
  10. ```js
  11. var isCore = require('is-core-module');
  12. var assert = require('assert');
  13. assert(isCore('fs'));
  14. assert(!isCore('butts'));
  15. ```
  16. ## Tests
  17. Clone the repo, `npm install`, and run `npm test`
  18. [1]: https://npmjs.org/package/is-core-module
  19. [2]: https://versionbadg.es/inspect-js/is-core-module.svg
  20. [3]: https://travis-ci.com/inspect-js/is-core-module.svg
  21. [4]: https://travis-ci.com/inspect-js/is-core-module
  22. [5]: https://david-dm.org/inspect-js/is-core-module.svg
  23. [6]: https://david-dm.org/inspect-js/is-core-module
  24. [7]: https://david-dm.org/inspect-js/is-core-module/dev-status.svg
  25. [8]: https://david-dm.org/inspect-js/is-core-module#info=devDependencies
  26. [11]: https://nodei.co/npm/is-core-module.png?downloads=true&stars=true
  27. [license-image]: https://img.shields.io/npm/l/is-core-module.svg
  28. [license-url]: LICENSE
  29. [downloads-image]: https://img.shields.io/npm/dm/is-core-module.svg
  30. [downloads-url]: https://npm-stat.com/charts.html?package=is-core-module