This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity.eu/node_modules/is-core-module/README.md
2024-03-26 16:28:28 +01:00

1.6 KiB

is-core-module Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this specifier a node.js core module? Optionally provide a node version to check; defaults to the current node version.

Example

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