Code Monkey home page Code Monkey logo

Comments (11)

mcollina avatar mcollina commented on May 19, 2024

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.

juliangruber avatar juliangruber commented on May 19, 2024

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.

piranna avatar piranna commented on May 19, 2024

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.

rvagg avatar rvagg commented on May 19, 2024

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.

heapwolf avatar heapwolf commented on May 19, 2024

@piranna perfect idea for a new module! :)

from level.

piranna avatar piranna commented on May 19, 2024

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.

dominictarr avatar dominictarr commented on May 19, 2024

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.

rvagg avatar rvagg commented on May 19, 2024

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.

mcollina avatar mcollina commented on May 19, 2024

Done and published https://github.com/Level/level-browserify.

https://www.npmjs.org/package/level-browserify

from level.

ralphtheninja avatar ralphtheninja commented on May 19, 2024

πŸ‘

from level.

mcollina avatar mcollina commented on May 19, 2024

I'm closing this! Please test the new module and report any bugs!

from level.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.