Skip to content

Commit acc3e72

Browse files
committed
initial commit as separate package
0 parents  commit acc3e72

File tree

7 files changed

+183
-0
lines changed

7 files changed

+183
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

CONTRIBUTING.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Level is an OPEN Open Source Project
2+
3+
-----------------------------------------
4+
5+
## What?
6+
7+
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.
8+
9+
## Rules
10+
11+
There are a few basic ground-rules for contributors:
12+
13+
1. **No `--force` pushes** or modifying the Git history in any way.
14+
1. **Non-master branches** ought to be used for ongoing work.
15+
1. **External API changes and significant modifications** ought to be subject to an **internal pull-request** to solicit feedback from other contributors.
16+
1. Internal pull-requests to solicit feedback are *encouraged* for any other non-trivial contribution but left to the discretion of the contributor.
17+
1. Contributors should attempt to adhere to the prevailing code-style.
18+
19+
## Releases
20+
21+
Declaring formal releases remains the prerogative of the project maintainer.
22+
23+
## Changes to this arrangement
24+
25+
This is an experiment and feedback is welcome! This document may also be subject to pull-requests or changes by contributors where you believe you have something valuable to add or change.
26+
27+
-----------------------------------------

LICENSE

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Copyright 2012, Rod Vagg (the "Original Author")
2+
All rights reserved.
3+
4+
MIT +no-false-attribs License
5+
6+
Permission is hereby granted, free of charge, to any person
7+
obtaining a copy of this software and associated documentation
8+
files (the "Software"), to deal in the Software without
9+
restriction, including without limitation the rights to use,
10+
copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the
12+
Software is furnished to do so, subject to the following
13+
conditions:
14+
15+
The above copyright notice and this permission notice shall be
16+
included in all copies or substantial portions of the Software.
17+
18+
Distributions of all or part of the Software intended to be used
19+
by the recipients as they would use the unmodified Software,
20+
containing modifications that substantially alter, remove, or
21+
disable functionality of the Software, outside of the documented
22+
configuration mechanisms provided by the Software, shall be
23+
modified such that the Original Author's bug reporting email
24+
addresses and urls are either replaced with the contact information
25+
of the parties responsible for the changes, or removed entirely.
26+
27+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
28+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
29+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
30+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
31+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
32+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
33+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
34+
OTHER DEALINGS IN THE SOFTWARE.
35+
36+
37+
Except where noted, this license applies to any and all software
38+
programs and associated documentation files created by the
39+
Original Author, when distributed with the Software.

README.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
Level
2+
=====
3+
4+
![LevelDB Logo](https://twimg0-a.akamaihd.net/profile_images/3360574989/92fc472928b444980408147e5e5db2fa_bigger.png)
5+
6+
Fast & simple storage - a Node.js-style LevelDB wrapper
7+
-------------------------------------------------------
8+
9+
This is a convenience package that bundles the current release of **[LevelUP](https://github.com/rvagg/node-levelup)** and **[LevelDOWN](https://github.com/rvagg/node-leveldown)** and exposes LevelUP on its export.
10+
11+
Use this package to avoid having to explicitly install LevelDOWN when you just want plain old LevelDB from LevelUP.
12+
13+
```js
14+
var level = require('level')
15+
16+
// 1) Create our database, supply location and options.
17+
// This will create or open the underlying LevelDB store.
18+
var db = level('./mydb')
19+
20+
// 2) put a key & value
21+
db.put('name', 'Level', function (err) {
22+
if (err) return console.log('Ooops!', err) // some kind of I/O error
23+
24+
// 3) fetch by key
25+
db.get('name', function (err, value) {
26+
if (err) return console.log('Ooops!', err) // likely the key was not found
27+
28+
// ta da!
29+
console.log('name=' + value)
30+
})
31+
})
32+
```
33+
34+
See **[LevelUP](https://github.com/rvagg/node-levelup)** and **[LevelDOWN](https://github.com/rvagg/node-leveldown)** for more details.
35+
36+
<a name="contributing"></a>
37+
Contributing
38+
------------
39+
40+
Level is an **OPEN Open Source Project**. This means that:
41+
42+
> 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.
43+
44+
See the [CONTRIBUTING.md](https://github.com/Level/level/blob/master/CONTRIBUTING.md) file for more details.
45+
46+
### Contributors
47+
48+
Level, including LevelUP & LevelDOWN, is only possible due to the excellent work of the following contributors:
49+
50+
<table><tbody>
51+
<tr><th align="left">Rod Vagg</th><td><a href="https://github.com/rvagg">GitHub/rvagg</a></td><td><a href="http://twitter.com/rvagg">Twitter/@rvagg</a></td></tr>
52+
<tr><th align="left">John Chesley</th><td><a href="https://github.com/chesles/">GitHub/chesles</a></td><td><a href="http://twitter.com/chesles">Twitter/@chesles</a></td></tr>
53+
<tr><th align="left">Jake Verbaten</th><td><a href="https://github.com/raynos">GitHub/raynos</a></td><td><a href="http://twitter.com/raynos2">Twitter/@raynos2</a></td></tr>
54+
<tr><th align="left">Dominic Tarr</th><td><a href="https://github.com/dominictarr">GitHub/dominictarr</a></td><td><a href="http://twitter.com/dominictarr">Twitter/@dominictarr</a></td></tr>
55+
<tr><th align="left">Max Ogden</th><td><a href="https://github.com/maxogden">GitHub/maxogden</a></td><td><a href="http://twitter.com/maxogden">Twitter/@maxogden</a></td></tr>
56+
<tr><th align="left">Lars-Magnus Skog</th><td><a href="https://github.com/ralphtheninja">GitHub/ralphtheninja</a></td><td><a href="http://twitter.com/ralphtheninja">Twitter/@ralphtheninja</a></td></tr>
57+
<tr><th align="left">David Björklund</th><td><a href="https://github.com/kesla">GitHub/kesla</a></td><td><a href="http://twitter.com/david_bjorklund">Twitter/@david_bjorklund</a></td></tr>
58+
<tr><th align="left">Julian Gruber</th><td><a href="https://github.com/juliangruber">GitHub/juliangruber</a></td><td><a href="http://twitter.com/juliangruber">Twitter/@juliangruber</a></td></tr>
59+
<tr><th align="left">Paolo Fragomeni</th><td><a href="https://github.com/hij1nx">GitHub/hij1nx</a></td><td><a href="http://twitter.com/hij1nx">Twitter/@hij1nx</a></td></tr>
60+
<tr><th align="left">Anton Whalley</th><td><a href="https://github.com/No9">GitHub/No9</a></td><td><a href="https://twitter.com/antonwhalley">Twitter/@antonwhalley</a></td></tr>
61+
<tr><th align="left">Matteo Collina</th><td><a href="https://github.com/mcollina">GitHub/mcollina</a></td><td><a href="https://twitter.com/matteocollina">Twitter/@matteocollina</a></td></tr>
62+
</tbody></table>
63+
64+
65+
<a name="licence"></a>
66+
Licence &amp; copyright
67+
-------------------
68+
69+
Copyright (c) 2012-2013 Level contributors (listed above).
70+
71+
Level 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.

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('levelup')

package.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name" : "level"
3+
, "description" : "Fast & simple storage - a Node.js-style LevelDB wrapper (a convenience package bundling LevelUP & LevelDOWN)"
4+
, "contributors" : [
5+
"Rod Vagg <r@va.gg> (https://github.com/rvagg)"
6+
, "John Chesley <john@chesl.es> (https://github.com/chesles/)"
7+
, "Jake Verbaten <raynos2@gmail.com> (https://github.com/raynos)"
8+
, "Dominic Tarr <dominic.tarr@gmail.com> (https://github.com/dominictarr)"
9+
, "Max Ogden <max@maxogden.com> (https://github.com/maxogden)"
10+
, "Lars-Magnus Skog <lars.magnus.skog@gmail.com> (https://github.com/ralphtheninja)"
11+
, "David Björklund <david.bjorklund@gmail.com> (https://github.com/kesla)"
12+
, "Julian Gruber <julian@juliangruber.com> (https://github.com/juliangruber)"
13+
, "Paolo Fragomeni <paolo@async.ly> (https://github.com/hij1nx)"
14+
, "Anton Whalley <anton.whalley@nearform.com> (https://github.com/No9)"
15+
, "Matteo Collina <matteo.collina@gmail.com> (https://github.com/mcollina)"
16+
]
17+
, "keywords": [
18+
"leveldb"
19+
, "stream"
20+
, "database"
21+
, "db"
22+
, "store"
23+
, "storage"
24+
, "json"
25+
]
26+
, "version" : "0.8.0"
27+
, "main" : "index.js"
28+
, "dependencies" : {
29+
"leveldown" : "~0.2.3"
30+
, "levelup" : "~0.8.0"
31+
}
32+
, "repository" : {
33+
"type" : "git"
34+
, "url" : "https://github.com/Level/level.git"
35+
}
36+
, "scripts" : {
37+
"test" : "node ./test.js"
38+
}
39+
, "license" : "MIT"
40+
}

test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
var assert = require('assert')
2+
3+
assert(require('./') === require('levelup'))
4+
console.log('All good! level === levelup')

0 commit comments

Comments
 (0)