Why is IndexedDB not available in node.js?

The indexedDB API on node.js will be very useful for some applications.

Why is IndexedDB not available in node.js?

The IndexedDB API is not dependent on the DOM, although it uses some DOM errors and event style.

+7
source share
1 answer

Perhaps because IndexedDB is part of the standard standard. Node.js is just ECMAScript (via Google V8) along with its own API . Also, this might not help the fact that IndexedDB is still in the "Draft".

But, most likely, for the same reason Node.js does not offer any database drivers: it does not try to solve these problems. He is simply trying to offer APIs that help those who want to solve and implement them.

And for this, at least one such project has already begun: indexeddb-js . But also browse IndexedDB in the NPM registry .

+14
source

All Articles