Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

async-err

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-err - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

package.json
{
"name": "async-err",
"version": "0.0.2",
"version": "0.0.3",
"description": "An easy way to make an error in Node.js async, when it would sync otherwise.",

@@ -25,3 +25,3 @@ "main": "index.js",

"debug": "0.7.4",
"is2": "0.0.12"
"is2": "0.0.13"
},

@@ -28,0 +28,0 @@ "devDependencies": {

@@ -7,7 +7,7 @@ async-err

## Installation
# Installation
npm install async-err
## Example - non-throwing
# Example - non-throwing

@@ -38,5 +38,5 @@ 'use strict';

## API
# API
### asyncerr(err, cb)
## asyncerr(err, cb)
A convenience function to make otherwise sync errors async. If you give asyncerr

@@ -46,19 +46,19 @@ incorrect arguments, it will send messages to the console via the debug module,

#### Params:
### Params:
* **Object** *err* A Node.js Error object.
* **Function** *cb* A function object as callback.
### asyncerrThrows(err, cb)
## asyncerrThrows(err, cb)
A convenience function to make otherwise sync errors async. If you give it
incorrect arguments, it will throw and exception.
#### Params:
### Params:
* **Object** *err* A Node.js Error object.
* **Function** *cb* A function object as callback.
## License
# License
The MIT License (MIT)
Copyright (c) 2013 Edmond Meinfelder
Copyright (c) 2013-2014 Edmond Meinfelder

@@ -81,2 +81,1 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of

CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc