Browse files

Updated dependencies, copyright year.

  • Loading branch information...
1 parent 5e2ff8d commit dc211349eb3c1f77cd22c2a2ac264cd67c423d4b @mcollina committed Jun 9, 2015
@@ -65,7 +65,7 @@
### On Node.js
-npm install levelgraph --save
+npm install levelgraph level-browserify --save
At the moment it requires node v0.10.x, but the port to node v0.8.x
@@ -78,15 +78,20 @@ Just download
and you are done!
+Alternatively, you can use [browserify](
## Usage
The LevelGraph API remains the same for Node.js and the browsers,
however the initialization change slightly.
Initializing a database is very easy:
-var levelgraph = require("levelgraph"); // not needed in the Browser
-var db = levelgraph("yourdb");
+var level = require("level-browserify");
+var levelgraph = require("levelgraph");
+// just use this in the browser with the provided bundle
+var db = levelgraph(level("yourdb"));
### Get and Put
@@ -665,7 +670,7 @@ href="">GitHub/jez0990</a></td></tr>
## LICENSE - "MIT License"
-Copyright (c) 2013-2014 Matteo Collina and LevelGraph Contributors
+Copyright (c) 2013-2015 Matteo Collina and LevelGraph Contributors
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
@@ -2,7 +2,8 @@
rm -rf build
mkdir build
-./node_modules/.bin/browserify -s levelgraph ./lib/levelgraph.js > build/levelgraph.js
+./node_modules/.bin/browserify -s level node_modules/level-browserify/browser.js > build/levelgraph.js
+./node_modules/.bin/browserify -s levelgraph ./lib/levelgraph.js >> build/levelgraph.js
./node_modules/.bin/uglifyjs build/levelgraph.js > build/levelgraph.min.js
gzip -c build/levelgraph.min.js > build/levelgraph.min.js.gz
du -h build/*
Oops, something went wrong.

0 comments on commit dc21134

Please sign in to comment.