{"_id":"@aicacia/option","_rev":"6-d0d25aff415d301781a1e434bc3610e0","name":"@aicacia/option","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@aicacia/option","version":"0.1.0","keywords":["just","option","maybe"],"author":{"name":"Nathan Faucett"},"license":"(MIT OR Apache-2.0)","_id":"@aicacia/option@0.1.0","maintainers":[{"name":"nathanfaucett","email":"nathanfaucett@gmail.com"}],"homepage":"https://github.com/aicacia/ts-option#readme","bugs":{"url":"https://github.com/aicacia/ts-option/issues"},"nyc":{"exclude":["src/**/*.test.*","src/**/*.benchmark.*"],"include":["src"],"extension":[".ts",".tsx"]},"dist":{"shasum":"5276fcaa29d2b52d98e64d9a1893cfc23913e180","tarball":"https://registry.npmjs.org/@aicacia/option/-/option-0.1.0.tgz","fileCount":12,"integrity":"sha512-juZNmvihBKsf+LqTt83yZhY3OHrOTxhEzudnEMZncltk6kzAurkAV/yWUxgyjCR7PcE3Rqi1yrOrv+xMTb+ntw==","signatures":[{"sig":"MEUCIQCXM5s0jHC+X8Jlh8ZDZNuyJOPvtNPY/JxNzaSQKPF8fgIgQb/oM6XYfh76iZB0YE0A6I0zS25OTQ8XQIOngRV3b4s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36445,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwwO5CRA9TVsSAnZWagAAtoAP/0ysC1dtNk+YS94ZEvWN\naamGYc0lQfLABtB5kgXiBh9b0PBj0G5g5hh0CTaHW5Br3FYN/IJWA3z8vo48\nMhAXb9aeQw7jRGs9p9UiXZ8rlCIcWVf6jU8L06sZqFz5n+PoLpyaHU3aSl3/\ntTwqNqX+JnUFu4lhMtPXObwumbI0Pzs55z7zrCZoR6K4OlMIa6SwXfDSxuAl\nShIo2UYFbwa5X+5PHixkYaXpvAvrkB47D13Zk3O7HlLnx0HwVA/YUYyu1TW6\nbErbJu6f2kOim/RoCq+xnzlsLknxxLAYhK2K638kIV6Pyw1kMQGiWSWSj1ST\n9dycuFLwnVqlHIwCHQKuU1uD7oRSY0D1NgoSjPPJeMyql4LS2HI/v3FwNL/v\neXNofhGOCCmtrYpNneWzrPESD4q7W5GeDzwQTqRQ6RAEZY5cVXYsesPpPje2\nUC9pMdclZqqtnWHaG4Wmt2xw2nVBW7hul85TLb1O/u41yrBkQ27XgN8UaSaw\nEO27E/BG803AkwyDWPEVeN+Pa2yLmRjJNU+Q7ELDnWIPPDjtaxYEKQNdw1aD\n/nly0x5ROlSEnkiPBrGj5ZiqDd6a7TFl2JK769/5pN/BfeU8KQzYXQJQxOsm\n8tVFiqHpAPSrUC2zaDORdtzR+TuO6j027BsC6qO8Ni5weObtz1WxxAd65/cP\nsyji\r\n=7D0b\r\n-----END PGP SIGNATURE-----\r\n"},"main":"cjs/index.js","husky":{"hooks":{"pre-commit":"npm run preCommit"}},"types":"types/index.d.ts","module":"esm/index.js","gitHead":"29c1717be74f2d5403460a73ab3adc35448093dd","scripts":{"doc":"typedoc","lint":"eslint . --fix","test":"ts-node node_modules/.bin/tape src/**/*.test.{ts,tsx} | tap-spec","bench":"ts-node node_modules/.bin/tape src/**/*.benchmark.{ts,tsx} | tap-spec","build":"tsc","clean":"rm -rf esm cjs browser types","buildESM":"tsc -b tsconfig.esm.json","coverage":"nyc --reporter=lcov --check-coverage --lines=75 --require ts-node/register tape src/**/*.test.{ts,tsx} | tap-spec; nyc report ---reporter=text","prettier":"prettier --ignore-path .eslintignore --ignore-unknown --write .","preCommit":"npm run prettier && npm run lint && npm run coverage","buildBrowser":"rollup -c","prepublishOnly":"npm run clean && npm run build && npm run buildESM && npm run buildBrowser"},"_npmUser":{"name":"nathanfaucett","email":"nathanfaucett@gmail.com"},"repository":{"url":"git+https://github.com/aicacia/ts-option.git","type":"git"},"_npmVersion":"8.1.3","description":"aicacia option","directories":{},"_nodeVersion":"14.17.1","_hasShrinkwrap":false,"devDependencies":{"nyc":"15","tape":"5","husky":"4","tslib":"2","eslint":"7","tap-nyc":"1","ts-node":"10","typedoc":"0","prettier":"2","tap-spec":"5","typescript":"4","@types/tape":"4","rollup-plugin-terser":"7","eslint-config-prettier":"8","eslint-plugin-prettier":"3","@rollup/plugin-commonjs":"21","@rollup/plugin-typescript":"8","@typescript-eslint/parser":"4","@rollup/plugin-node-resolve":"13","rollup-plugin-esm-import-to-url":"2","@typescript-eslint/eslint-plugin":"4"},"peerDependencies":{"tslib":"2"},"_npmOperationalInternal":{"tmp":"tmp/option_0.1.0_1636233803655_0.9836024057485715","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@aicacia/option","version":"0.1.1","keywords":["just","option","maybe"],"author":{"name":"Nathan Faucett"},"license":"(MIT OR Apache-2.0)","_id":"@aicacia/option@0.1.1","maintainers":[{"name":"nathanfaucett","email":"nathanfaucett@gmail.com"}],"homepage":"https://github.com/aicacia/ts-option#readme","bugs":{"url":"https://github.com/aicacia/ts-option/issues"},"nyc":{"exclude":["src/**/*.test.*","src/**/*.benchmark.*"],"include":["src"],"extension":[".ts",".tsx"]},"dist":{"shasum":"2e868e91c7c03694ec3fe73c10054c7f628c1be9","tarball":"https://registry.npmjs.org/@aicacia/option/-/option-0.1.1.tgz","fileCount":12,"integrity":"sha512-92g8z+O0zJmMbTT3TEAAcS9dBrDfmgvHKZKsmPgpR+UlJY2yjLGJpBWaTKtzFwEgE0eiUUrPrD5rleueAq7jMg==","signatures":[{"sig":"MEQCID2st0cZ7YVOyDKmCy03y9Gv2emscj/oVjHgodXNM1xNAiB/RhBPAZZWh4GbXRm0YG5vV2VQWjvda+1H3l3MHLiiTA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilqR9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqD4g//X9HObekmNpzPqiYp0Prch1ij+5BziG47Y6vMbZOnI28pYcgS\r\nN+FnYKuOjAalO+eZ9C7NvkWNKz8e7Vw7OXoYAGezH+TdPlh+3Qx/XDdoVHVr\r\nnT0HTygw+VhAfRc2e5hAJafQprkQgzXzqTngjflSStcXAzuQHvvUuUDKWPl7\r\nmaIFz0N5nrmb15O2aTdM57K/bNFPCIEOf0O84/kzNqqtt0IFQYM99/x4VUJZ\r\nr0PEZjmqa5pS94yPVUc9oSl0ntUpktnUdVn9cRmkwy+HOmIrI682sYZAXicn\r\nyFerhiVThE2sgIjpviVIDIQDUsrWnWmSE0VkXmXKKtrdzbNFuaUIzqbM3/Jm\r\n+C9joNZSSz9GGlJ+La8eiZGPsub4ADV/Hynr47A5/ARyI6KAXo8CWjmZjgy4\r\nQzPGTMdnz5M9PwdDPvJ2vVysQao793jhicTMcbby+R2imOrcnCbNZQWZOepl\r\nryscNFyWc/Lnc5e3mY45Iyayn1aMI9HnTOKWfClE4F+IzJxYu0IPlZ14rd0s\r\nQJxPwtJKSpfMts/Z7wcmhVEJEq7oySTLyBG7Ik+2n31NHJ+cmGZbj/g9w88i\r\nvHAuS7K09zp+SPo8xQqk/twWyCxaL+qxF2Zd9MMWtdD5d38d7VtY9jOhbRKS\r\ne+KwObRKUGWqS+nGcXtKQjfRkuhwywYwLAc=\r\n=Xo+E\r\n-----END PGP SIGNATURE-----\r\n"},"main":"cjs/index.js","husky":{"hooks":{"pre-commit":"npm run preCommit"}},"types":"types/index.d.ts","module":"esm/index.js","gitHead":"4c96194c3210c1fa6e66934a6f13d651c7b3fa95","scripts":{"doc":"typedoc","lint":"eslint . --fix","test":"ts-node node_modules/.bin/tape src/**/*.test.{ts,tsx} | tap-spec","bench":"ts-node node_modules/.bin/tape src/**/*.benchmark.{ts,tsx} | tap-spec","build":"tsc","clean":"rm -rf esm cjs browser types","buildESM":"tsc -b tsconfig.esm.json","coverage":"nyc --reporter=lcov --check-coverage --lines=75 --require ts-node/register tape src/**/*.test.{ts,tsx} | tap-spec; nyc report ---reporter=text","prettier":"prettier --ignore-path .eslintignore --ignore-unknown --write .","preCommit":"npm run prettier && npm run lint && npm run coverage","buildBrowser":"rollup -c","prepublishOnly":"npm run clean && npm run build && npm run buildESM && npm run buildBrowser"},"_npmUser":{"name":"nathanfaucett","email":"nathanfaucett@gmail.com"},"repository":{"url":"git+https://github.com/aicacia/ts-option.git","type":"git"},"_npmVersion":"8.11.0","description":"aicacia option","directories":{},"_nodeVersion":"16.15.0","_hasShrinkwrap":false,"devDependencies":{"nyc":"15","tape":"5","husky":"4","tslib":"2","eslint":"8","tap-nyc":"1","ts-node":"10","typedoc":"0","prettier":"2","tap-spec":"5","typescript":"4","@types/tape":"4","rollup-plugin-terser":"7","eslint-config-prettier":"8","eslint-plugin-prettier":"4","@rollup/plugin-commonjs":"22","@rollup/plugin-typescript":"8","@typescript-eslint/parser":"5","@rollup/plugin-node-resolve":"13","rollup-plugin-esm-import-to-url":"2","@typescript-eslint/eslint-plugin":"5"},"peerDependencies":{"tslib":"2"},"_npmOperationalInternal":{"tmp":"tmp/option_0.1.1_1654039677185_0.9428465232661238","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@aicacia/option","version":"0.1.2","keywords":["just","option","maybe"],"author":{"name":"Nathan Faucett"},"license":"(MIT OR Apache-2.0)","_id":"@aicacia/option@0.1.2","maintainers":[{"name":"nathanfaucett","email":"nathanfaucett@gmail.com"}],"homepage":"https://github.com/aicacia/ts-option#readme","bugs":{"url":"https://github.com/aicacia/ts-option/issues"},"nyc":{"exclude":["src/**/*.test.*","src/**/*.benchmark.*"],"include":["src"],"extension":[".ts",".tsx"]},"dist":{"shasum":"200614294e56ed8f699b47f8e92228d0eca23747","tarball":"https://registry.npmjs.org/@aicacia/option/-/option-0.1.2.tgz","fileCount":13,"integrity":"sha512-nUmnxLoMawFfbHPLRQL31pYHE/lObUQT7ol6FZl90gBrv1E8r5yFqqR9ERkhcmIWCklckN1DVbUFddwaPqbbgQ==","signatures":[{"sig":"MEYCIQDb5CrpLpzGrAG+a/VWv97oSYVu34JQSL+bxOyNoynnygIhALueNasdzoGmn0fs8BICK+Vialj7PrdyWYjifjezDkkJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39116,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7zuDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrrtg//bTpyUtZTMu4qU823hZTMzgn2jZIavtV1XeF49n8fbBPgBCXP\r\n44684Vs6kipgkKSxL0OhkBHrnQkdqJlRhMhjfKg+1T1zX597WToB5GyT1RN5\r\nUVMmDuxF+kKU6yqPvKQwvG9by1GQCAdE/3YouX56G3co6bri7gUfgrN6zpS9\r\nJUFLSDVEcxg1o5HBKcUoeFvxhGCUngQ1WGBK9ddn6JLnpUEzoCR+W6cX2E/t\r\n5nLT9ziOOVkrJwzhwFgMieCcM7d7rKw8IpIx44Z+JZwp5Zg7F67J9T0Rwygo\r\n5psc0LBxoZW5x9kfJedhZsSee3XXcltNAxvTvmJ3atTPm7x3g5PAfqlhkRzW\r\nmd2a8rdsHWO3/I6AwEKqKaRL2guwzuAGFHFKW9Tyrwux8mG5lW/OcMQDgHjt\r\ntqJ/J+PgKT8zLGhrQisgbwxzrzSV6QZ86SG3fcqfIgJmN3FCURn9GbxHLQV6\r\n9TUECRmxJDlQzGF+AbMqFAgB5cKnceJq0n6454lP/yW/0XPS9E467iKwJQnJ\r\nDZYf8VbmNrmmfLzQowzGtMuMTdq9Q2zrSO8l+F4p3VrSH14Wa8CgcFt5IE0x\r\n+eB1kjBst3WI8vG5C+qgOdCtN4niSi5kz4UmdmrIM09jQ0kYSQMz5lZMriwn\r\naHOUUpGqYYDSAP/SIRNqnlyGzdvCAoh3Yh8=\r\n=222B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"cjs/index.js","types":"types/index.d.ts","module":"esm/index.js","gitHead":"3f41c50f51ca23f749f2e4f41b4f3167256129ec","scripts":{"doc":"typedoc","lint":"eslint . --fix","test":"ts-node node_modules/.bin/tape src/**/*.test.{ts,tsx} | tap-spec","bench":"ts-node node_modules/.bin/tape src/**/*.benchmark.{ts,tsx} | tap-spec","build":"tsc","clean":"rm -rf esm cjs browser types","prepare":"husky install","buildESM":"tsc -b tsconfig.esm.json","coverage":"nyc --reporter=lcov --check-coverage --lines=75 --require ts-node/register tape src/**/*.test.{ts,tsx} | tap-spec; nyc report ---reporter=text","prettier":"prettier --ignore-path .eslintignore --ignore-unknown --write .","preCommit":"npm run prettier && npm run lint && npm run coverage","buildBrowser":"rollup -c","prepublishOnly":"npm run clean && npm run build && npm run buildESM && npm run buildBrowser"},"_npmUser":{"name":"nathanfaucett","email":"nathanfaucett@gmail.com"},"repository":{"url":"git+https://github.com/aicacia/ts-option.git","type":"git"},"_npmVersion":"8.16.0","description":"aicacia option","directories":{},"_nodeVersion":"18.7.0","_hasShrinkwrap":false,"devDependencies":{"nyc":"15","tape":"5","husky":"8","tslib":"2","eslint":"8","tap-nyc":"1","ts-node":"10","typedoc":"0","prettier":"2","tap-spec":"5","typescript":"4","@types/tape":"4","rollup-plugin-terser":"7","eslint-config-prettier":"8","eslint-plugin-prettier":"4","@rollup/plugin-commonjs":"22","@rollup/plugin-typescript":"8","@typescript-eslint/parser":"5","@rollup/plugin-node-resolve":"13","rollup-plugin-esm-import-to-url":"2","@typescript-eslint/eslint-plugin":"5"},"peerDependencies":{"tslib":"2"},"_npmOperationalInternal":{"tmp":"tmp/option_0.1.2_1659845507594_0.8496867360074634","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"@aicacia/option","version":"0.1.3","description":"aicacia option","repository":{"type":"git","url":"git+https://github.com/aicacia/ts-option.git"},"module":"esm/index.js","main":"cjs/index.js","types":"types/index.d.ts","keywords":["just","option","maybe"],"author":{"name":"Nathan Faucett"},"license":"(MIT OR Apache-2.0)","devDependencies":{"@biomejs/biome":"1","@rollup/plugin-commonjs":"28","@rollup/plugin-node-resolve":"15","@rollup/plugin-terser":"0","@rollup/plugin-typescript":"12","@types/tape":"5","husky":"9","nyc":"17","rollup":"4","rollup-plugin-esm-import-to-url":"2","tap-nyc":"1","tap-spec":"5","tape":"5","ts-node":"10","tslib":"2","typedoc":"0","typescript":"5"},"peerDependencies":{"tslib":"2"},"nyc":{"include":["src"],"exclude":["src/**/*.test.*","src/**/*.benchmark.*"],"extension":[".ts",".tsx"]},"scripts":{"buildTSC":"tsc","buildESM":"tsc -b tsconfig.esm.json","buildBrowser":"rollup -c","build":"npm run clean && npm run buildTSC && npm run buildESM && npm run buildBrowser","doc":"typedoc","test":"ts-node node_modules/tape/bin/tape src/**/*.test.{ts,tsx} | tap-spec","bench":"ts-node node_modules/tape/bin/tape src/**/*.benchmark.{ts,tsx} | tap-spec","coverage":"nyc --reporter=lcov --check-coverage --lines=75 --require ts-node/register tape src/**/*.test.{ts,tsx} | tap-spec; nyc report ---reporter=text","coverageHTML":"nyc --reporter=lcov --check-coverage --lines=75 --require ts-node/register tape src/**/*.test.{ts,tsx} | tap-spec; nyc report ---reporter=html","clean":"rm -rf esm cjs browser types .nyc_output coverage","lint":"biome lint ./src","format":"biome format --write .","preCommit":"npm run format && npm run lint && npm run coverage"},"_id":"@aicacia/option@0.1.3","bugs":{"url":"https://github.com/aicacia/ts-option/issues"},"homepage":"https://github.com/aicacia/ts-option#readme","_integrity":"sha512-t8FNlEMWipSYpCZbNMrtSzJ0AW6h3sp2brKLeGc5cZeUWuQx2qiOzG3Nz7L6OWkZJj9VWhEm/piZQ6Jjn0tMiQ==","_resolved":"/tmp/0be766a211d7d8b006943d2dc4f6783c/aicacia-option-0.1.3.tgz","_from":"file:aicacia-option-0.1.3.tgz","_nodeVersion":"22.5.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-t8FNlEMWipSYpCZbNMrtSzJ0AW6h3sp2brKLeGc5cZeUWuQx2qiOzG3Nz7L6OWkZJj9VWhEm/piZQ6Jjn0tMiQ==","shasum":"9fccaf4aaa1dce45805fe9b3e43e236632d21b47","tarball":"https://registry.npmjs.org/@aicacia/option/-/option-0.1.3.tgz","fileCount":14,"unpackedSize":37945,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD4WEm8Sy+nYHsx/yQaIEkCm/0uXW2EovMKlh1vE2OdkgIhALpgpVmBwLtHSacrp29UhORW6HLtFrx9Y6gM/sTqXv98"}]},"_npmUser":{"name":"nathanfaucett","email":"nathanfaucett@gmail.com"},"directories":{},"maintainers":[{"name":"nathanfaucett","email":"nathanfaucett@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/option_0.1.3_1746372974126_0.31017556214726105"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-06T21:23:23.601Z","modified":"2025-05-04T15:36:14.568Z","0.1.0":"2021-11-06T21:23:23.787Z","0.1.1":"2022-05-31T23:27:57.363Z","0.1.2":"2022-08-07T04:11:47.740Z","0.1.3":"2025-05-04T15:36:14.373Z"},"bugs":{"url":"https://github.com/aicacia/ts-option/issues"},"author":{"name":"Nathan Faucett"},"license":"(MIT OR Apache-2.0)","homepage":"https://github.com/aicacia/ts-option#readme","keywords":["just","option","maybe"],"repository":{"type":"git","url":"git+https://github.com/aicacia/ts-option.git"},"description":"aicacia option","maintainers":[{"name":"nathanfaucett","email":"nathanfaucett@gmail.com"}],"readme":"# ts-option\n\n[![license](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue\")](LICENSE-MIT)\n[![docs](https://img.shields.io/badge/docs-typescript-blue.svg)](https://aicacia.github.io/ts-option/)\n[![npm (scoped)](https://img.shields.io/npm/v/@aicacia/option)](https://www.npmjs.com/package/@aicacia/option)\n[![build](https://github.com/aicacia/ts-option/workflows/Test/badge.svg)](https://github.com/aicacia/ts-option/actions?query=workflow%3ATest)\n\naicacia option\n\n```ts\nimport { Option, none } from \"@aicacia/option\";\n\nconst maybe = none<number>();\n\nif (maybe.isNone()) {\n  maybe.replace(1);\n}\n\nconsole.log(maybe.unwrap()); // 1\n```\n","readmeFilename":"README.md"}