{"name":"try-catch","version":"4.1.1","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"functional try-catch wrapper","homepage":"http://github.com/coderaiser/try-catch","repository":{"type":"git","url":"git+https://github.com/coderaiser/try-catch.git"},"main":"./lib/try-catch.js","exports":{".":"./lib/try-catch.js"},"scripts":{"test":"madrun test","test:dts":"madrun test:dts","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"devDependencies":{"@putout/eslint-flat":"^4.0.0","check-dts":"^1.0.0","eslint":"^10.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^31.4.2","madrun":"^13.0.4","putout":"^42.13.0","superc8":"^12.7.0","supertape":"^13.6.0"},"license":"MIT","engines":{"node":">=22"},"gitHead":"a92ac2420dc9818026a5b3a451947b62a2c70c87","types":"./lib/try-catch.d.ts","_id":"try-catch@4.1.1","bugs":{"url":"https://github.com/coderaiser/try-catch/issues"},"_nodeVersion":"26.8.1","_npmVersion":"12.0.2","dist":{"integrity":"sha512-5gVQYyJKsgaZsXb5KycqQQ/ugfs/JuAcmeO1tjoVshwaXCQPUQFhzJZFofoya55TGProeuQR77ztYh53qaONpQ==","shasum":"dcb81930ebd6fd77fa2e2042dc9f1f6c3a408514","tarball":"http://registry-npm.ywwl.com/try-catch/download/try-catch-4.1.1.tgz","fileCount":7,"unpackedSize":5878,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCOFhWyaLYs5cYxMz5cNz/E2HFboprGmhGTkG/kyPJt2AIhAJ/YVJ9jVFv5161hwtVC7r9QJ4lqX1tvCBZHBuZdI4Il"}],"size":2754,"noattachment":false,"key":"/try-catch/-/try-catch-4.1.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/try-catch_4.1.1_1788342204123_0.8232098815383839"},"_hasShrinkwrap":false,"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":1788342204263,"_cnpm_publish_time":1788342204263,"dist-tags":{"latest":"4.1.1"}}