版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
427 B

  1. /**
  2. Returns `true` if the given `moduleName` is a Node.js builtin module, `false` otherwise.
  3. @param moduleName - The name of the module.
  4. @example
  5. ```
  6. import isBuiltinModule = require('is-builtin-module');
  7. isBuiltinModule('fs/promises');
  8. //=> true
  9. isBuiltinModule('node:fs');
  10. //=> true
  11. isBuiltinModule('unicorn');
  12. //=> false
  13. ```
  14. */
  15. declare function isBuiltinModule(moduleName: string): boolean;
  16. export = isBuiltinModule;