Comments (11)
At the moment I use a browser:
field:
https://github.com/mcollina/levelgraph/blob/master/package.json#L69
https://github.com/mcollina/levelgraph/blob/master/lib/getdb.js
https://github.com/mcollina/levelgraph/blob/master/lib/getdb-browser.js
from level.
That would mean level.js has to be a dependency of level and will be installed even if it's not necessary, I'm not sure if we want that. Then we'd also have to "officially support" level.js and issues will be opened on this repo.
from level.
Yes, sort-of what are you doing, but automatically. I'm also thinking if this shouldn't be done directly on the levelUp library...
P.D.: levelGraph seems really cool! ;-)
from level.
I'd rather see another package for browser use because the problem here is that if you simply want to use it in the browser then it's going to still download and try and install leveldown which is not at all what you want. Once people start saying that you should install level to be able to use it all in the browser then we're going to get reports from people who can't do native builds on their system (Windows users without all the painful dependencies and Mac users without xcode or with xcode badly installed).
from level.
@piranna perfect idea for a new module! :)
from level.
Yeah, it makes sense, better to do it by hand when required, I only though it would be useful to do it automatically by the library, but it's true it would leave more problems that solutions. Clossing.
from level.
need a level-browserify module, like https://github.com/dominictarr/canvas-browserify which allows require('canvas-browserify')
to work the same in the browser and the server.
from level.
we can do this under the Level org on github if someone wants to take responsibility for it. level-packager could do the heavy-lifting of piecing the bits together like it does for the other level/level-hyper/level-basho/level-rocksdb etc. releases.
any takers? @piranna perhaps?
from level.
Done and published https://github.com/Level/level-browserify.
https://www.npmjs.org/package/level-browserify
from level.
π
from level.
I'm closing this! Please test the new module and report any bugs!
from level.
Related Issues (20)
- Find specific key createReadStream HOT 6
- docker node alpine image exited with code 139 (arm32v7) HOT 4
- Can this be used to polyfill IndexedDB on Node? HOT 3
- [Question] how can "level-js" make data persistence? HOT 2
- db.isOperational is not a function HOT 2
- Trying to store different types of data but getting stored as string HOT 1
- Error while creating a web bundle with esbuild HOT 1
- Recommended way of retrieving a list of all keys? HOT 1
- Exception handling during storing a value HOT 4
- Live streaming values from a level HOT 6
- Types do not export `destroy` property HOT 1
- Random "Error: Database is not open" errors HOT 14
- Minor Compactions is triggered frequently
- Every time my node script restarts, it creates a new .LDB file in the database directory HOT 1
- Checking if a key exists HOT 1
- Get read access to locked database HOT 1
- how to get all sublevel db HOT 2
- No native build was found error on MacOS with M1 processor HOT 3
- ESM support HOT 4
- Π‘orrect way to read keys and values HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from level.