-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moves many modules (but not yet all) to the Legacy section and adds new `abstract-level` based modules. Also adds a `timeless` option for modules, to make the "last commit" badge green, to indicate that the module is feature-complete and can be used even if it seems old by lack of activity.
- Loading branch information
Showing
22 changed files
with
1,819 additions
and
1,622 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,10 @@ | ||
{ | ||
"title": "Core", | ||
"modules": { | ||
"levelup": { | ||
"github": "Level/levelup", | ||
"description": [ | ||
"The glue that holds everything together.", | ||
"Use this when you need a [custom or swappable store](#stores)." | ||
], | ||
"copyrightYear": 2012, | ||
"author": null | ||
}, | ||
"abstract-leveldown": { | ||
"github": "Level/abstract-leveldown", | ||
"description": [ | ||
"An abstract prototype matching the [leveldown] API.", | ||
"Use this to implement your own store." | ||
], | ||
"copyrightYear": 2013, | ||
"author": "Rod Vagg" | ||
}, | ||
"level-packager": { | ||
"github": "Level/packager", | ||
"description": [ | ||
"Package helper to export [a bundle](#bundles).", | ||
"Use this to create a new `level-*` bundle." | ||
], | ||
"copyrightYear": 2013, | ||
"author": null | ||
"abstract-level": { | ||
"github": "Level/abstract-level", | ||
"description": "Abstract class for a lexicographically sorted key-value database.", | ||
"timeless": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Example of a custom encoding | ||
const { Level } = require('level') | ||
const charwise = require('charwise') | ||
|
||
const db = new Level('./db', { | ||
keyEncoding: charwise | ||
}) | ||
|
||
await db.put(['users', 2], 'example') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.