• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

test/25-Sep-2023-134116

.eslintrcD24-Sep-2023339 1918

.nycrcD24-Sep-2023139 109

CHANGELOG.mdD24-Sep-202312.8 KiB174114

LICENSED24-Sep-20231.1 KiB2016

README.mdD24-Sep-20231.6 KiB4133

core.jsonD24-Sep-20235.6 KiB159158

index.jsD24-Sep-20231.7 KiB7059

package.jsonD24-Sep-20231.8 KiB7473

README.md

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
12Is 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
17var isCore = require('is-core-module');
18var assert = require('assert');
19assert(isCore('fs'));
20assert(!isCore('butts'));
21```
22
23## Tests
24Clone 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
41