Skip to content

Axorax/builtin-check.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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