1. is-builtin-module
Check if a string matches the name of a Node.js builtin module
is-builtin-module
Package: is-builtin-module
Created by: sindresorhus
Last modified: Tue, 31 Jan 2023 05:53:21 GMT
Version: 3.2.1
License: MIT
Downloads: 25,505,331
Repository: https://github.com/sindresorhus/is-builtin-module

Install

npm install is-builtin-module
yarn add is-builtin-module

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

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.

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin