Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
test/ | 25-Sep-2023 | - | 134 | 116 | ||
.eslintrc | D | 24-Sep-2023 | 339 | 19 | 18 | |
.nycrc | D | 24-Sep-2023 | 139 | 10 | 9 | |
CHANGELOG.md | D | 24-Sep-2023 | 12.8 KiB | 174 | 114 | |
LICENSE | D | 24-Sep-2023 | 1.1 KiB | 20 | 16 | |
README.md | D | 24-Sep-2023 | 1.6 KiB | 41 | 33 | |
core.json | D | 24-Sep-2023 | 5.6 KiB | 159 | 158 | |
index.js | D | 24-Sep-2023 | 1.7 KiB | 70 | 59 | |
package.json | D | 24-Sep-2023 | 1.8 KiB | 74 | 73 |
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