level-errors
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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" | ||
} | ||
} |
@@ -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 & copyright | ||
@@ -12,0 +30,0 @@ ------------------- |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4979
6
35
34
1