{"name":"is-builtin-module","version":"4.0.0","description":"Check if a string matches the name of a Node.js builtin module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-builtin-module.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18.20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["builtin","built-in","builtins","node","modules","core","bundled","list","array","names","is","detect","check","match"],"dependencies":{"builtin-modules":"^4.0.0"},"devDependencies":{"ava":"^6.1.2","tsd":"^0.31.0","xo":"^0.58.0"},"_id":"is-builtin-module@4.0.0","gitHead":"239f82cc75a2eaea3c45575e450c5c66f7d51817","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/is-builtin-module/issues"},"homepage":"https://github.com/sindresorhus/is-builtin-module#readme","_nodeVersion":"18.20.2","_npmVersion":"10.6.0","dist":{"integrity":"sha512-rWP3AMAalQSesXO8gleROyL2iKU73SX5Er66losQn9rWOWL4Gef0a/xOEOVqjWGMuR2vHG3FJ8UUmT700O8oFg==","shasum":"dfbf2080dad42d28af2bde71df7e4bc3f1dee6c0","tarball":"http://registry-npm.ywwl.com/is-builtin-module/download/is-builtin-module-4.0.0.tgz","fileCount":5,"unpackedSize":3944,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhep1tFhcaOGVAoSQSI//9sgKIo3tJ5hdp848Z3zEHbAiEA4Biu/V9tZD5eeagk1b8bn0g3VyO12r7UQGzlE/U+7Yk="}],"size":1798,"noattachment":false,"key":"/is-builtin-module/-/is-builtin-module-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-builtin-module_4.0.0_1714470494981_0.5295850252047953"},"_hasShrinkwrap":false,"readme":"# is-builtin-module\n\n> Check if a string matches the name of a Node.js builtin module\n\nNote that this matches based a [static list of modules](https://github.com/sindresorhus/builtin-modules) from the latest Node.js version. If you want to check for a module in the current Node.js, use the core [`isBuiltin`](https://nodejs.org/api/module.html#moduleisbuiltinmodulename) method.\n\n## Install\n\n```sh\nnpm install is-builtin-module\n```\n\n## Usage\n\n```js\nimport isBuiltinModule from 'is-builtin-module';\n\nisBuiltinModule('fs');\n//=> true\n\nisBuiltinModule('fs/promises');\n//=> true\n\nisBuiltinModule('node:fs/promises');\n//=> true\n\nisBuiltinModule('unicorn');\n//=> false\n```\n\n## Related\n\n- [builtin-modules](https://github.com/sindresorhus/builtin-modules) - A static list of the Node.js builtin modules from the latest Node.js version\n","publish_time":1714470495149,"_cnpm_publish_time":1714470495149,"dist-tags":{"latest":"5.0.0"}}