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

Commit 6b790f5

Browse files
author
Lars-Magnus Skog
authored
update README style (#11)
* update README style * usage moved to level
1 parent aa1802b commit 6b790f5

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

README.md

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,12 @@
1-
21
# level-errors
32

4-
<img alt="LevelDB Logo" height="100" src="http://leveldb.org/img/logo.svg">
5-
6-
> Error module for [LevelUP](https://github.com/rvagg/node-levelup)
3+
> Error module for [levelup][levelup]
74
8-
[![Build Status](https://travis-ci.org/Level/errors.png)](https://travis-ci.org/Level/errors)
5+
[![level badge][level-badge]](https://github.com/level/awesome)
6+
[![Build Status](https://travis-ci.org/Level/errors.svg)](https://travis-ci.org/Level/errors)
7+
[![dependencies](https://david-dm.org/Level/level.svg)](https://david-dm.org/level/level)
98
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
10-
[![Greenkeeper badge](https://badges.greenkeeper.io/Level/errors.svg)](https://greenkeeper.io/)
11-
12-
## Usage
13-
14-
```js
15-
const levelup = require('levelup')
16-
const errors = levelup.errors
17-
18-
levelup('./db', { createIfMissing: false }, function (err, db) {
19-
if (err instanceof errors.OpenError) {
20-
console.log('open failed because expected db to exist')
21-
}
22-
})
23-
```
9+
[![npm](https://img.shields.io/npm/dm/level-errors.svg)](https://www.npmjs.com/package/level-errors)
2410

2511
## API
2612

@@ -67,3 +53,6 @@ levelup('./db', { createIfMissing: false }, function (err, db) {
6753
Copyright (c) 2012-2017 LevelUP contributors.
6854

6955
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.
56+
57+
[level-badge]: http://leveldb.org/img/badge.svg
58+
[levelup]: https://github.com/level/levelup

0 commit comments

Comments
 (0)