Node.js – How to access localStorage in node.js

local-storagenode.js

I tried searching the web for a node module that can access the client's localStorage but wasn't able to find anything. Anyone know of one?

Best Solution

You can use :

node-localstorage npm module to use localStorage at the server side.

var LocalStorage = require('node-localstorage').LocalStorage,
localStorage = new LocalStorage('./scratch');