mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 04:10:04 +02:00
update minify
This commit is contained in:
28
node_modules/try-catch/README.md
generated
vendored
28
node_modules/try-catch/README.md
generated
vendored
@@ -1,11 +1,29 @@
|
||||
# TryCatch
|
||||
# Try Catch [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]
|
||||
|
||||
`Try-catch` wrapper.
|
||||
[NPMIMGURL]: https://img.shields.io/npm/v/try-catch.svg?style=flat
|
||||
[BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/try-catch/master.svg?style=flat
|
||||
[DependencyStatusIMGURL]: https://img.shields.io/david/coderaiser/try-catch.svg?style=flat
|
||||
[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
|
||||
[NPMURL]: https://npmjs.org/package/try-catch "npm"
|
||||
[BuildStatusURL]: https://travis-ci.org/coderaiser/try-catch "Build Status"
|
||||
[DependencyStatusURL]: https://david-dm.org/coderaiser/try-catch "Dependency Status"
|
||||
[LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License"
|
||||
|
||||
[CoverageURL]: https://coveralls.io/github/coderaiser/readify?branch=master
|
||||
[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/readify/badge.svg?branch=master&service=github
|
||||
|
||||
Functional `try-catch` wrapper
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
npm i try-catch
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
const tryCatch = require('tryCatch');
|
||||
const tryCatch = require('try-catch');
|
||||
const {parse} = JSON;
|
||||
const [error, result] = tryCatch(parse, 'hello');
|
||||
|
||||
@@ -14,6 +32,10 @@ if (error)
|
||||
|
||||
```
|
||||
|
||||
## Related
|
||||
|
||||
- [try-to-catch](https://github.com/coderaiser/try-to-catch "TryToCatch") - functional try-catch wrapper for promises.
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
Reference in New Issue
Block a user