{"_id":"@bussin/yeet","name":"@bussin/yeet","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@bussin/yeet","version":"0.1.0","description":"Yeet errors inline.","author":{"name":"wesley.thorsen@gmail.com"},"license":"MIT","private":false,"repository":{"type":"github","url":"git+https://github.com/bussin-io/yeet.git"},"keywords":["error","errors","throw","inline"],"exports":{".":{"import":"./dist-es/index.js","require":"./dist-cjs/index.js","types":"./dist-types/index.d.ts"}},"scripts":{"build":"npm run clean && npm ci && concurrently 'npm:build:cjs' 'npm:build:es' 'npm:build:types'","build:cjs":"tsc -p tsconfig.cjs.json && tsc-alias","build:es":"tsc -p tsconfig.es.json && tsc-alias","build:types":"tsc -p tsconfig.types.json && tsc-alias","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"eslint --fix */**/*.ts && prettier --write */**/*.ts","test":"jest"},"devDependencies":{"@eslint/js":"^9.19.0","@tsconfig/recommended":"1.0.1","@types/jest":"^29.5.14","@types/node":"^20.11.19","concurrently":"7.0.0","eslint":"^9.19.0","eslint-config-prettier":"^10.0.1","eslint-plugin-import":"^2.31.0","jest":"^29.7.0","prettier":"^3.3.3","rimraf":"^5.0.7","ts-jest":"^29.2.5","ts-node":"^10.9.2","tsc-alias":"^1.8.10","tsconfig-paths":"^4.2.0","typescript":"^5.7.3","typescript-eslint":"^8.21.0"},"dependencies":{},"_id":"@bussin/yeet@0.1.0","bugs":{"url":"https://github.com/bussin-io/yeet/issues"},"homepage":"https://github.com/bussin-io/yeet#readme","_nodeVersion":"20.19.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-lDJoeKGDLfhYLzCSJnDIyMwfKPLFUVjk1MyXVyZnV3HhR7yLVvMo2iFSHz1TKShmQHOUbJFNmvZNp4sPEZwq5g==","shasum":"58bc5dcdde8d414a5d39de1dbf47bcad42af4c0d","tarball":"https://registry.npmjs.org/@bussin/yeet/-/yeet-0.1.0.tgz","fileCount":19,"unpackedSize":8141,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDlFJk8lWr2KOwS7WKzb/50luh82fFl5jz4YLzbs2rYkQIhAOECgmVyyn/B568PFbw7Lb4V3R9DGIJ0b+7Y1Tao4GCq"}]},"_npmUser":{"name":"wesleythorsen","email":"wesley.thorsen@gmail.com","actor":{"name":"wesleythorsen","email":"wesley.thorsen@gmail.com","type":"user"}},"directories":{},"maintainers":[{"name":"wesleythorsen","email":"wesley.thorsen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/yeet_0.1.0_1750270907784_0.28242429633014954"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-18T18:21:47.704Z","0.1.0":"2025-06-18T18:21:47.993Z","modified":"2025-06-18T18:21:48.281Z"},"maintainers":[{"name":"wesleythorsen","email":"wesley.thorsen@gmail.com"}],"description":"Yeet errors inline.","homepage":"https://github.com/bussin-io/yeet#readme","keywords":["error","errors","throw","inline"],"repository":{"type":"github","url":"git+https://github.com/bussin-io/yeet.git"},"author":{"name":"wesley.thorsen@gmail.com"},"bugs":{"url":"https://github.com/bussin-io/yeet/issues"},"license":"MIT","readme":"# @bussin/yeet\n\n[![NPM Version](https://img.shields.io/npm/v/@bussin/yeet)](https://npmjs.com/package/@bussin/yeet) [![NPM Version](https://img.shields.io/npm/dw/@bussin/yeet)](https://npmjs.com/package/@bussin/yeet) [![NPM Version](https://img.shields.io/bundlephobia/min/@bussin/yeet)](https://npmjs.com/package/@bussin/yeet)\n\nYeet errors inline.\n\nLicense: [MIT](https://opensource.org/licenses/MIT)\n\n## Installation\n\n```bash\n    npm install @bussin/yeet\n```\n\n## Quick Start\n\n```TypeScript\nimport { yeet } from '@bussin/yeet';\n\nfunction myFunc(nullish?: string) {\n  const notNullish = nullish ?? yeet(Error, 'Argument \"nullish\" is missing.');\n\n  console.log(notNullish);\n\n  // ...\n}\n\nmyFunc('not nullish!');\nmyFunc(); // throws\n```\n\n## Contributing\n\nTo contribute, all PRs should target the `develop` branch. Feature branches must be rebased onto the latest `develop` commit before merging to keep a linear git history.\n\n## Publishing\n\nPackage releases are started by manually triggering the [Bump Version](https://github.com/bussin-io/yeet/actions/workflows/bump-version.yml) GitHub Action. The Bump Version action will create a release commit with the version bump and an associated git tag, and automatically start the [Build and Publish](https://github.com/bussin-io/yeet/actions/workflows/build-and-publish.yml) GitHub Action. The Build and Publish action requires a manual approval step from a repository admin. Once approved, the package will be published to the NPM registry.\n\n## Support\n\nPlease create a PR if you find any missing functionality that you's like to add. For bugs, please use the [issues tracker](https://github.com/bussin-io/yeet/issues). I'd be happy to help you!\n","readmeFilename":"README.md","_rev":"1-f3b91d0e868beb9dabd95229b7c5f220"}