Socket
Socket
Sign inDemoInstall

level-errors

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

level-errors - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

test.js

10

package.json
{
"name": "level-errors",
"description": "Error types for LevelUP",
"version": "1.0.0",
"version": "1.0.1",
"contributors": [

@@ -25,2 +25,5 @@ "Rod Vagg <r@va.gg> (https://github.com/rvagg)",

},
"scripts": {
"test": "tape test.js"
},
"homepage": "https://github.com/level/errors.git",

@@ -37,3 +40,6 @@ "keywords": [

},
"license": "MIT"
"license": "MIT",
"devDependencies": {
"tape": "^3.5.0"
}
}

20

README.md

@@ -8,4 +8,22 @@ level-errors

WIP
Usage
-----
```js
var levelup = require('levelup')
var errors = levelup.errors
levelup('./db', { createIfMissing: false }, function (err, db) {
if (err instanceof errors.OpenError) {
console.log('open failed because expected db to exist')
}
})
```
Publishers
----------
* [@ralphtheninja](https://github.com/ralphtheninja)
* [@juliangruber](https://github.com/juliangruber)
License &amp; copyright

@@ -12,0 +30,0 @@ -------------------

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