lix-website/themes/lix/assets/bootstrap/node_modules/is-builtin-module/index.d.ts

23 lines
427 B
TypeScript
Raw Normal View History

2024-04-27 03:39:10 +00:00
/**
Returns `true` if the given `moduleName` is a Node.js builtin module, `false` otherwise.
@param moduleName - The name of the module.
@example
```
import isBuiltinModule = require('is-builtin-module');
isBuiltinModule('fs/promises');
//=> true
isBuiltinModule('node:fs');
//=> true
isBuiltinModule('unicorn');
//=> false
```
*/
declare function isBuiltinModule(moduleName: string): boolean;
export = isBuiltinModule;