Closed simplygreatwork closed 6 years ago
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
<script type="text/javascript" src="level-browserify.js"></script>
var database = level('./test_database'); database.put('key', 'value', function(error) { database.get('key', function(error, value) { console.log('value:', value) }); });
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! :)
Build the browser distribution
Include level-browserify.js using a script tag in your html page
Run the following code in your app