mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-12-12 00:44:31 +01:00
38 lines
1.3 KiB
Markdown
38 lines
1.3 KiB
Markdown
|
# is-core-module <sup>[![Version Badge][2]][1]</sup>
|
||
|
|
||
|
[![Build Status][3]][4]
|
||
|
[![dependency status][5]][6]
|
||
|
[![dev dependency status][7]][8]
|
||
|
[![License][license-image]][license-url]
|
||
|
[![Downloads][downloads-image]][downloads-url]
|
||
|
|
||
|
[![npm badge][11]][1]
|
||
|
|
||
|
Is this specifier a node.js core module? Optionally provide a node version to check; defaults to the current node version.
|
||
|
|
||
|
## Example
|
||
|
|
||
|
```js
|
||
|
var isCore = require('is-core-module');
|
||
|
var assert = require('assert');
|
||
|
assert(isCore('fs'));
|
||
|
assert(!isCore('butts'));
|
||
|
```
|
||
|
|
||
|
## Tests
|
||
|
Clone the repo, `npm install`, and run `npm test`
|
||
|
|
||
|
[1]: https://npmjs.org/package/is-core-module
|
||
|
[2]: https://versionbadg.es/inspect-js/is-core-module.svg
|
||
|
[3]: https://travis-ci.com/inspect-js/is-core-module.svg
|
||
|
[4]: https://travis-ci.com/inspect-js/is-core-module
|
||
|
[5]: https://david-dm.org/inspect-js/is-core-module.svg
|
||
|
[6]: https://david-dm.org/inspect-js/is-core-module
|
||
|
[7]: https://david-dm.org/inspect-js/is-core-module/dev-status.svg
|
||
|
[8]: https://david-dm.org/inspect-js/is-core-module#info=devDependencies
|
||
|
[11]: https://nodei.co/npm/is-core-module.png?downloads=true&stars=true
|
||
|
[license-image]: https://img.shields.io/npm/l/is-core-module.svg
|
||
|
[license-url]: LICENSE
|
||
|
[downloads-image]: https://img.shields.io/npm/dm/is-core-module.svg
|
||
|
[downloads-url]: https://npm-stat.com/charts.html?package=is-core-module
|