Level / level-js

An abstract-leveldown compliant store on top of IndexedDB.
MIT License
542 stars 44 forks source link

Node.js compatibility? #196

Closed rix0rrr closed 4 years ago

rix0rrr commented 4 years ago

So this may be an odd question, and maybe what I want simply cannot be achieved, but here goes anyway:

Result: I cannot run this test on a simple Windows instance, which does not come with Python, nor a compiler. Both of these are a pain and expensive to install on a CI/CD run (given a plain Windows container image), and it's just as much of a pain to now maintain a publishing pipeline for a Windows image with those 2 tools baked in, just to be able to install Verdaccio to run my NPM tests.

Given this is integ tests and I don't really care about performance, I'd like to be able to switch out the leveldown implementation for the level-js implementation (a compatible but slower JS implementation of leveldown, right?).

Is this something I can do, or something you would consider supporting?

vweevers commented 4 years ago

On the latest version of leveldown, you don't necessarily need node-gyp, python, etc, because it ships prebuilt binaries (for 32 and 64 bit windows) inside the npm package.

I'd like to be able to switch out the leveldown implementation for the level-js implementation

level-js only works in browsers (because it's backed by IndexedDB) but there are plenty of alternatives! See https://github.com/Level/awesome#bundles and https://github.com/Level/awesome#stores

rix0rrr commented 4 years ago

Thanks for the response!