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