{"name":"try-catch","version":"4.0.3","author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"try-catch@4.0.3","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"http://github.com/coderaiser/try-catch","bugs":{"url":"https://github.com/coderaiser/try-catch/issues"},"dist":{"shasum":"28badcdd77acdf857e64fe1bd48403ab55bbfaaf","tarball":"http://registry-npm.ywwl.com/try-catch/download/try-catch-4.0.3.tgz","fileCount":6,"integrity":"sha512-0EwId4KY2bq2oYZLS7nYWpzQKIYJpMKqcY5VjXTvAMZAPZplniosQSSWEDxHtszlefeydzPtCt9pRefoVNv6pw==","signatures":[{"sig":"MEYCIQCU3LALSLWnLUCEjpLBQF1cSxVQduruBW6OWJCIbI7wpQIhAL5yG+rbclAxnAVFgzo4v/ocYRTZXvsfmatHCigz9MD/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4970,"size":2386,"noattachment":false,"key":"/try-catch/-/try-catch-4.0.3.tgz"},"main":"lib/try-catch.js","type":"module","engines":{"node":">=20"},"exports":{".":{"node":{"import":"./lib/try-catch.js","require":"./lib/try-catch.cjs"},"default":"./lib/try-catch.js"}},"gitHead":"6e5e64d68706068331475b604768c903eef533bd","scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"repository":{"url":"git+https://github.com/coderaiser/try-catch.git","type":"git"},"_npmVersion":"11.4.2","description":"functional try-catch wrapper","directories":{},"_nodeVersion":"25.2.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.3","eslint":"^9.39.2","madrun":"^11.0.4","putout":"^41.2.0","supertape":"^11.5.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^29.2.0"},"_npmOperationalInternal":{"tmp":"tmp/try-catch_4.0.3_1767133003873_0.1465062232684231","host":"s3://npm-registry-packages-npm-production"},"readme":"# Try Catch [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/try-catch.svg?style=flat\n[NPMURL]: https://npmjs.org/package/try-catch \"npm\"\n[LicenseURL]: https://tldrlegal.com/license/mit-license \"MIT License\"\n[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[CoverageURL]: https://coveralls.io/github/coderaiser/try-catch?branch=master\n[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/try-catch/badge.svg?branch=master&service=github\n[BuildStatusURL]: https://github.com/coderaiser/try-catch/actions?query=workflow%3A%22Node+CI%22 \"Build Status\"\n[BuildStatusIMGURL]: https://github.com/coderaiser/try-catch/workflows/Node%20CI/badge.svg\n\nFunctional `try-catch` wrapper\n\n## Install\n\n```\nnpm i try-catch\n```\n\n## Example\n\n```js\nimport {tryCatch} from 'try-catch';\n\nconst {parse} = JSON;\nconst [error, result] = tryCatch(parse, 'hello');\n\nif (error)\n    console.error(error.message);\n```\n\n## Related\n\n- [try-to-catch](https://github.com/coderaiser/try-to-catch \"TryToCatch\") - functional try-catch wrapper for promises.\n\n## License\n\nMIT\n","publish_time":1767133004029,"_cnpm_publish_time":1767133004029,"dist-tags":{"latest":"4.1.1"}}