{"name":"is-bun-module","author":{"name":"SunsetTechuila","email":"techuila.sunset@gmail.com"},"description":"Is this specifier a Bun core module or supported Node one?","version":"1.3.0","license":"MIT","main":"./dist/cjs/index.js","module":"./dist/esm/index.mjs","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}},"./package.json":"./package.json"},"homepage":"https://github.com/SunsetTechuila/is-bun-module","repository":{"type":"git","url":"git+https://github.com/SunsetTechuila/is-bun-module.git"},"bugs":{"url":"https://github.com/SunsetTechuila/is-bun-module/issues"},"keywords":["core","modules","module","node","dependencies","bun"],"scripts":{"build":"bun --bun tsup","check-all":"bun --bun concurrently --kill-others=failure 'bun run test' 'bun lint' 'bun type-check' 'bun format:check'","test":"bun test","format":"bun format:base --write","format:check":"bun format:base --check","format:base":"bun --bun prettier . --cache","lint":"bun --bun eslint . --cache","type-check":"bun --bun tsc","publish":"bun --bun semantic-release"},"dependencies":{"semver":"^7.6.3"},"devDependencies":{"@commitlint/cli":"^19.6.0","@commitlint/config-conventional":"^19.6.0","@eslint/js":"^9.15.0","@semantic-release/exec":"^6.0.3","@types/bun":"^1.1.14","@types/eslint__js":"^8.42.3","@types/semver":"^7.5.8","concurrently":"^9.1.0","eslint":"^9.15.0","eslint-config-prettier":"^9.1.0","husky":"^9.1.7","prettier":"^3.4.0","semantic-release":"^24.2.0","tsup":"^8.3.5","typescript":"^5.7.2","typescript-eslint":"^8.16.0"},"_id":"is-bun-module@1.3.0","gitHead":"8feb4bb878ef8d75fc5f7091467e32ebe2f093b4","types":"./dist/cjs/index.d.ts","_nodeVersion":"22.6.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-DgXeu5UWI0IsMQundYb5UAOzm6G2eVnarJ0byP6Tm55iZNKceD59LNPA2L4VvsScTtHcw0yEkVwSf7PC+QoLSA==","shasum":"ea4d24fdebfcecc98e81bcbcb506827fee288760","tarball":"http://registry-npm.ywwl.com/is-bun-module/download/is-bun-module-1.3.0.tgz","fileCount":7,"unpackedSize":11754,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/is-bun-module@1.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDVdy4mWYKvZPrqhhbkc5PZfBqbbUWkcH+g1Y8166A0AiEAm4UbG9U1SDQQ6f6La6Ua1g+MiFFbiOcj0OmgnQQhRzU="}],"size":3618,"noattachment":false,"key":"/is-bun-module/-/is-bun-module-1.3.0.tgz"},"_npmUser":{"name":"sunset_techuila","email":"techuila.sunset@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-bun-module_1.3.0_1732631128038_0.08922657981191762"},"_hasShrinkwrap":false,"readme":"# is-bun-module\n\n## How to use\n\nTo check if a specifier is a [Bun module](https://bun.sh/docs/runtime/bun-apis):\n\n```typescript\nimport { isBunModule } from \"is-bun-module\";\nisBunModule(\"bun\"); // true\nisBunModule(\"bun:test\", \"1.0.0\"); // true\nisBunModule(\"notBunModule\"); // false\n```\n\nTo check if a specifier is a Node module [supported by Bun](https://bun.sh/docs/runtime/nodejs-apis):\n\n```typescript\nimport { isSupportedNodeModule } from \"is-bun-module\";\nisSupportedNodeModule(\"fs\"); // true\nisSupportedNodeModule(\"node:fs\"); // true\nisSupportedNodeModule(\"node:notNodeModule\"); // false\nisSupportedNodeModule(\"node:http2\", \"1.0.0\"); // false, added in 1.0.13\n```\n\n## Notes\n\n- **Only Bun v1.0.0+ is supported**\n- You can also pass `latest` as Bun version\n- Inspired by [is-core-module](https://github.com/inspect-js/is-core-module) and made for [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript)\n- Runtime-independent\n","publish_time":1732631128256,"maintainers":[{"name":"sunset_techuila","email":"techuila.sunset@gmail.com"}],"_cnpm_publish_time":1732631128256,"dist-tags":{"latest":"2.0.0"}}