ags
This commit is contained in:
parent
eddf7cecb8
commit
aea798d119
16631 changed files with 1480363 additions and 257 deletions
22
home/ags/node_modules/is-builtin-module/index.d.ts
generated
vendored
Normal file
22
home/ags/node_modules/is-builtin-module/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue