level-mem
Advanced tools
Comparing version 1.0.2 to 2.0.0
{ | ||
"name": "level-mem", | ||
"description": "A convenience package bundling LevelUP & MemDOWN", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"contributors": [ | ||
@@ -24,4 +24,4 @@ "Rod Vagg <r@va.gg> (https://github.com/rvagg)" | ||
"dependencies": { | ||
"memdown": "~1.4.1", | ||
"level-packager": "~1.2.1" | ||
"memdown": "~2.0.0", | ||
"level-packager": "~2.1.1" | ||
}, | ||
@@ -34,3 +34,6 @@ "devDependencies": { | ||
}, | ||
"engines": { | ||
"node": ">=4.0.0" | ||
}, | ||
"license": "MIT" | ||
} |
@@ -1,32 +0,31 @@ | ||
level-mem | ||
========= | ||
# level-mem | ||
<img alt="LevelDB Logo" height="100" src="http://leveldb.org/img/logo.svg"> | ||
> A convenience package that bundles [`levelup`](https://github.com/level/levelup) and [`memdown`](https://github.com/level/memdown) and exposes `levelup` on its export. | ||
**A convenience package bundling LevelUP & MemDOWN** | ||
[![level badge][level-badge]](https://github.com/level/awesome) | ||
[![npm](https://img.shields.io/npm/v/level-mem.svg)](https://www.npmjs.com/package/level-mem) | ||
![Node version](https://img.shields.io/node/v/level-mem.svg) | ||
[![Build Status](https://secure.travis-ci.org/Level/mem.png)](http://travis-ci.org/Level/mem) | ||
[![david](https://david-dm.org/Level/mem.svg)](https://david-dm.org/level/mem) | ||
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) | ||
[![npm](https://img.shields.io/npm/dm/level-mem.svg)](https://www.npmjs.com/package/level-mem) | ||
[![NPM](https://nodei.co/npm/level-mem.png)](https://nodei.co/npm/level-mem/) | ||
Use this package to avoid having to explicitly install `memdown` when you want to use `memdown` with `levelup` for non-persistent `levelup` data storage. | ||
[![Build Status](https://secure.travis-ci.org/Level/level-mem.png)](http://travis-ci.org/Level/level-mem) [![Greenkeeper badge](https://badges.greenkeeper.io/Level/level-mem.svg)](https://greenkeeper.io/) | ||
This is a convenience package that bundles the current release of **[LevelUP](https://github.com/rvagg/node-levelup)** and **[MemDOWN](https://github.com/rvagg/node-memdown)** and exposes LevelUP on its export. | ||
Use this package to avoid having to explicitly install MemDOWN when you want to use MemDOWN with LevelUP for non-persistent LevelUP data storage. | ||
```js | ||
var level = require('level-mem') | ||
const level = require('level-mem') | ||
// 1) Create our database, supply location and options. | ||
// 1) Create our database, with optional options. | ||
// This will create or open the underlying LevelDB store. | ||
var db = level('w00t') | ||
const db = level() | ||
// 2) put a key & value | ||
// 2) Put a key & value | ||
db.put('name', 'Level', function (err) { | ||
if (err) return console.log('Ooops!', err) // some kind of I/O error | ||
// 3) fetch by key | ||
// 3) Fetch by key | ||
db.get('name', function (err, value) { | ||
if (err) return console.log('Ooops!', err) // likely the key was not found | ||
// ta da! | ||
// Ta da! | ||
console.log('name=' + value) | ||
@@ -37,9 +36,7 @@ }) | ||
See **[LevelUP](https://github.com/rvagg/node-levelup)** and **[MemDOWN](https://github.com/rvagg/node-memdown)** for more details. | ||
See [`levelup`](https://github.com/level/levelup) and [`memdown`](https://github.com/level/memdown) for more details. | ||
<a name="contributing"></a> | ||
Contributing | ||
------------ | ||
## Contributing | ||
**level-mem** is an **OPEN Open Source Project**. This means that: | ||
`level-mem` is an **OPEN Open Source Project**. This means that: | ||
@@ -50,8 +47,8 @@ > 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. | ||
<a name="licence"></a> | ||
Licence & copyright | ||
------------------- | ||
## License | ||
Copyright (c) 2012-2017 Rod Vagg contributors (listed above). | ||
Copyright (c) 2012-2018 `level-mem` [contributors](https://github.com/level/community#contributors). | ||
**level-mem** is licensed under an MIT +no-false-attribs license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details. | ||
`level-mem` is licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included [`LICENSE.md`](LICENSE.md) file for more details. | ||
[level-badge]: http://leveldb.org/img/badge.svg |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
8562
9
0
1
53
+ Addedabstract-leveldown@4.0.3(transitive)
+ Addeddeferred-leveldown@3.0.0(transitive)
+ Addedencoding-down@4.0.1(transitive)
+ Addedimmediate@3.2.3(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedlevel-codec@8.0.0(transitive)
+ Addedlevel-errors@1.1.2(transitive)
+ Addedlevel-iterator-stream@2.0.3(transitive)
+ Addedlevel-packager@2.1.1(transitive)
+ Addedlevelup@2.0.2(transitive)
+ Addedmemdown@2.0.0(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
- Removedabstract-leveldown@2.6.32.7.2(transitive)
- Removeddeferred-leveldown@1.2.2(transitive)
- Removedimmediate@3.3.0(transitive)
- Removedisarray@0.0.1(transitive)
- Removedlevel-codec@7.0.1(transitive)
- Removedlevel-errors@1.0.5(transitive)
- Removedlevel-iterator-stream@1.3.1(transitive)
- Removedlevel-packager@1.2.1(transitive)
- Removedlevelup@1.3.9(transitive)
- Removedmemdown@1.4.1(transitive)
- Removedreadable-stream@1.1.14(transitive)
- Removedsemver@5.4.1(transitive)
- Removedstring_decoder@0.10.31(transitive)
Updatedlevel-packager@~2.1.1
Updatedmemdown@~2.0.0