Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 554 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 554 Bytes

builtin-check.js

Validate if a string is a Node.js built-in module

⚙️ Installation

npm i builtin-check

📖 Usage

▸ Import

// ES6
import builtinCheck from "builtin-check";

// commonjs
const builtinCheck = require("builtin-check");

▸ Check

builtinCheck("fs");
// True

builtinCheck("concall");
// False

Support me on PatreonCheck out my socials