Skip to content

Commit

Permalink
Replace mentions of level-browserify with level
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Apr 26, 2019
1 parent fa4debc commit 58b3e07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ If the environment does not support a type, it will throw an error which `level-

### Normalization

If you desire normalization for keys and values (e.g. to stringify numbers), wrap `level-js` with [`encoding-down`][encoding-down]. Alternatively install [`level-browserify`][level-browserify] which conveniently bundles [`levelup`][levelup], `level-js` and `encoding-down`. Such an approach is also recommended if you want to achieve universal (isomorphic) behavior or to smooth over type differences between browsers. For example, you could have [`leveldown`][leveldown] in a backend and `level-js` in the frontend.
If you desire normalization for keys and values (e.g. to stringify numbers), wrap `level-js` with [`encoding-down`][encoding-down]. Alternatively install [`level`][level] which conveniently bundles [`levelup`][levelup], `level-js` and `encoding-down`. Such an approach is also recommended if you want to achieve universal (isomorphic) behavior or to smooth over type differences between browsers. For example, you could have [`leveldown`][leveldown] in a backend and `level-js` in the frontend. The `level` package does exactly that.

Another reason you might want to use `encoding-down` is that the structured clone algorithm, while rich in types, can be slower than `JSON.stringify`.

Expand Down Expand Up @@ -184,7 +184,7 @@ const value2 = await db.get('key')
const value3 = value2.buffer
```

With `encoding-down` (or `level-browserify`) you can use the `id` encoding to selectively bypass encodings:
With `encoding-down` (or `level`) you can use the `id` encoding to selectively bypass encodings:

```js
const encode = require('encoding-down')
Expand Down Expand Up @@ -282,7 +282,7 @@ To sustain [`Level`](https:/Level) and its activities, become a back

[leveldown]: https:/Level/leveldown

[level-browserify]: https:/Level/level-browserify
[level]: https:/Level/level

[encoding-down]: https:/Level/encoding-down

Expand Down

0 comments on commit 58b3e07

Please sign in to comment.