Skip to content

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

License

Notifications You must be signed in to change notification settings

rsweeneydev/is-builtin-module

 
 

Repository files navigation

is-builtin-module

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

Install

$ npm install is-builtin-module

Usage

const isBuiltinModule = require('is-builtin-module');

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

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

isBuiltinModule('node:fs/promises');
//=> true

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

Related


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

About

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

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.5%
  • TypeScript 10.5%