Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Commit f80d1b7

Browse files
author
Lars-Magnus Skog
committed
tweak readme, add npm and node badges
1 parent b002756 commit f80d1b7

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

README.md

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,56 +3,53 @@
33
> Error module for [levelup][levelup]
44
55
[![level badge][level-badge]](https://github.com/level/awesome)
6+
[![npm](https://img.shields.io/npm/v/level-errors.svg)](https://www.npmjs.com/package/level-errors)
7+
![Node version](https://img.shields.io/node/v/level-errors.svg)
68
[![Build Status](https://travis-ci.org/Level/errors.svg)](https://travis-ci.org/Level/errors)
79
[![dependencies](https://david-dm.org/Level/level.svg)](https://david-dm.org/level/level)
810
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
911
[![npm](https://img.shields.io/npm/dm/level-errors.svg)](https://www.npmjs.com/package/level-errors)
1012

1113
## API
1214

13-
### .LevelUPError()
15+
### `.LevelUPError()`
1416

15-
Generic error base class.
17+
Generic error base class.
1618

17-
### .InitializationError()
19+
### `.InitializationError()`
1820

19-
Error initializing the database, like when the database's location argument is missing.
21+
Error initializing the database, like when the database's location argument is missing.
2022

21-
### .OpenError()
23+
### `.OpenError()`
2224

23-
Error opening the database.
25+
Error opening the database.
2426

25-
### .ReadError()
27+
### `.ReadError()`
2628

27-
Error reading from the database.
29+
Error reading from the database.
2830

29-
### .WriteError()
31+
### `.WriteError()`
3032

31-
Error writing to the database.
33+
Error writing to the database.
3234

33-
### .NotFoundError()
35+
### `.NotFoundError()`
3436

35-
Data not found error.
37+
Data not found error.
3638

37-
Has extra properties:
39+
Has extra properties:
3840

39-
- `notFound`: `true`
40-
- `status`: 404
41+
- `notFound`: `true`
42+
- `status`: 404
4143

42-
### .EncodingError()
44+
### `.EncodingError()`
4345

44-
Error encoding data.
46+
Error encoding data.
4547

46-
## Publishers
48+
## License
4749

48-
* [@ralphtheninja](https://github.com/ralphtheninja)
49-
* [@juliangruber](https://github.com/juliangruber)
50+
Copyright © 2012-2018 `level-errors` contributors.
5051

51-
## License & copyright
52-
53-
Copyright (c) 2012-2017 LevelUP contributors.
54-
55-
LevelUP is licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.
52+
`level-errors` is licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included `LICENSE.md` file for more details.
5653

5754
[level-badge]: http://leveldb.org/img/badge.svg
5855
[levelup]: https://github.com/level/levelup

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
"errno": "~0.1.1"
3939
},
4040
"license": "MIT",
41+
"engines": {
42+
"node": ">=4"
43+
},
4144
"devDependencies": {
4245
"standard": "^11.0.0",
4346
"tape": "^4.3.0"

0 commit comments

Comments
 (0)