Level / level-browserify

No longer maintained: superseded by level v5.0.0.
MIT License
63 stars 16 forks source link

Quickstart #33

Closed simplygreatwork closed 6 years ago

simplygreatwork commented 6 years ago

Build the browser distribution

npm install --g browserify
git clone https://github.com/Level/level-browserify.git
cd level-browserify
npm install .
browserify browser.js --standalone level > level-browserify.js

Include level-browserify.js using a script tag in your html page

<script type="text/javascript" src="level-browserify.js"></script>

Run the following code in your app

var database = level('./test_database');
database.put('key', 'value', function(error) {
    database.get('key', function(error, value) {
        console.log('value:', value)
    });
});
vweevers commented 6 years ago

I'm not sure what the actionable item is here. If you feel like the readme doesn't provide enough information, feel free to reopen, or to send a pull request! :)