Package detail

level-mem

Level1.3mMITdeprecated6.0.1

Superseded by memory-level (https://github.com/Level/community#faq)

A convenience package bundling LevelUP & MemDOWN

level, leveldb, stream, database

readme

level-mem

A convenience package that bundles levelup, encoding-down and memdown and exposes levelup on its export.

level badge npm Node version Test Coverage Standard Common Changelog Donate

Usage

Use this package to avoid having to explicitly install memdown when you want to use memdown with levelup for non-persistent levelup data storage.

const level = require('level-mem')

// Create our in-memory database
const db = level()

// Put a key & value
await db.put('name', 'Level')

// Get value by key
const value = await db.get('name')
console.log(value)

See levelup and memdown for more details.

If you are upgrading: please see UPGRADING.md.

Contributing

Level/mem is an OPEN Open Source Project. This means that:

Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.

See the Contribution Guide for more details.

Donate

Support us with a monthly donation on Open Collective and help us continue our work.

License

MIT

changelog

Changelog

6.0.1 - 2021-10-02

Fixed

  • Bump dependencies to prevent dedupe (9c63a61) (Vincent Weevers).

6.0.0 - 2021-10-01

If you are upgrading: please see UPGRADING.md.

Changed

  • Breaking: bump level-packager and memdown (d1fbde2) (Vincent Weevers)

Removed

  • Breaking: drop Node.js 6 and 8 (3cb1a32) (Vincent Weevers).

5.0.1 - 2019-09-08

Fixed

5.0.0 - 2019-09-06

If you are upgrading: please see UPGRADING.md.

Changed

  • Breaking: Upgrade memdown from ^4.0.0 to ^5.0.0 (#56) (@vweevers)
  • Upgrade hallmark devDependency from ^0.1.0 to ^2.0.0 (#54, #58) (@vweevers)
  • Upgrade standard devDependency from ^12.0.0 to ^14.0.0 (#53, #57) (@vweevers)
  • Upgrade nyc devDependency from ^13.2.0 to ^14.0.0 (#52) (@vweevers)

4.0.0 - 2019-03-30

If you are upgrading: please see UPGRADING.md.

Changed

Added

Removed

3.0.1 - 2018-06-24

Changed

  • Upgrade level-packager from ~3.0.0 to ~4.0.0 (@ralphtheninja)
  • Use proper version range for tape (@ralphtheninja)
  • Tweak copyright years for less maintenance
  • Use abstract tests from level-packager (@ralphtheninja)

Added

Removed

3.0.0 - 2018-05-23

If you are upgrading: please see UPGRADING.md.

Changed

Added

Removed

2.0.0 - 2018-02-14

Changed

Added

Removed

1.0.2 - 2017-11-28

Changed

1.0.1 - 2017-10-04

Changed

1.0.0 - 2017-08-17

Changed

Added

Removed

0.18.0 - 2013-12-05

Changed

  • Upgrade memdown to ~0.6.0 (@rvagg)
  • Upgrade level-packager to ~0.18.0 (@rvagg)

Added

0.17.0 - 2013-10-12

:seedling: Initial release.