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