{"name":"try-catch","version":"4.1.0","author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"try-catch@4.1.0","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":"cf834d6862695dcb06feca14ef28ead27eef8620","tarball":"http://registry-npm.ywwl.com/try-catch/download/try-catch-4.1.0.tgz","fileCount":7,"integrity":"sha512-Q392Jef3gx7XOn4xmZKXKCXJZcaS9u36mlYUFeR9kOhtZUguTxEIaU81OWjJtUiG7j52HPhusaZKA0ViZBPs5A==","signatures":[{"sig":"MEQCIGzIXitqzaPaMt+e6S8gib2C+w60njnSLpUJZrMG0fD2AiAkdCZhJ3/Cuz5fdwQt/NuITmmOxNpdwlzNevU2AFm4Sg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5825,"size":2745,"noattachment":false,"key":"/try-catch/-/try-catch-4.1.0.tgz"},"main":"./lib/try-catch.js","type":"module","engines":{"node":">=22"},"exports":{".":"./lib/try-catch.js"},"gitHead":"34e04c63f132ceeb22509f0572ac9018defc5c0b","scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","test:dts":"madrun test:dts"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"repository":{"url":"git+https://github.com/coderaiser/try-catch.git","type":"git"},"_npmVersion":"12.0.2","description":"functional try-catch wrapper","directories":{},"_nodeVersion":"26.8.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.4","putout":"^42.13.0","superc8":"^12.7.0","check-dts":"^1.0.0","supertape":"^13.6.0","eslint-plugin-node":"^11.0.0","@putout/eslint-flat":"^4.0.0","eslint-plugin-putout":"^31.4.2"},"_npmOperationalInternal":{"tmp":"tmp/try-catch_4.1.0_1788341921715_0.6271836866655978","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":1788341921842,"_cnpm_publish_time":1788341921842,"dist-tags":{"latest":"4.1.1"}}