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

if-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

if-err - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "if-err",
"version": "0.1.0",
"version": "0.1.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -21,4 +21,9 @@ # ifErr

asyncFunc(function (err) {
error.if(err, '');
error.if(err, 'bad things happened');
});
asyncFunc(function (err, data) {
error.if(err, 'bad things happened');
error.ifNot(data, 'data wasn\'t returned');
});
```

@@ -25,0 +30,0 @@

Sorry, the diff of this file is not supported yet

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