Validate if a string is a Node.js built-in module
npm i builtin-check
// ES6
import builtinCheck from "builtin-check";
// commonjs
const builtinCheck = require("builtin-check");
builtinCheck("fs");
// True
builtinCheck("concall");
// False
Validate if a string is a Node.js built-in module
npm i builtin-check
// ES6
import builtinCheck from "builtin-check";
// commonjs
const builtinCheck = require("builtin-check");
builtinCheck("fs");
// True
builtinCheck("concall");
// False