New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

leveldbstreams

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leveldbstreams

Simple readable and writable streams on top of leveldb together with a key/value server.

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

LevelDB streams

Install with: npm install

Start a key/value server: node server.js

Test with curl:

  • Put in db: curl -X POST -d "hej ehj hej hej" http://localhost:3000/key
  • Get from db: curl http://localhost:3000/key

Test from the browser:

  • Install ydn-db: bower install ydn.db
  • Open index.html in a web browser and show the developer console

Limitations on file size

I've done some testing saving large files (~30MB) and it seams to work well. Browsers does set some limitations though. Safari has a default size limit of 50MB for local storage. A popup is shown asking for more storage. The page has to be reloaded after accepting this request. Firefox worked straight out of the box.

Keywords

LevelDb

FAQs

Package last updated on 02 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts