summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/is-builtin-module/readme.md
blob: 798dcf4371799b28ded609c2fe8bc517879d07b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# is-builtin-module [![Build Status](https://travis-ci.org/sindresorhus/is-builtin-module.svg?branch=master)](https://travis-ci.org/sindresorhus/is-builtin-module)

> Check if a string matches the name of a Node.js builtin module


## Install

```
$ npm install --save is-builtin-module
```


## Usage

```js
var isBuiltinModule = require('is-builtin-module');

isBuiltinModule('fs');
//=> true

isBuiltinModule('unicorn');
//=> false :(
```


## Related

- [builtin-modules](https://github.com/sindresorhus/builtin-modules) - List of the Node.js builtin modules


## License

MIT © [Sindre Sorhus](http://sindresorhus.com)