Friday 2 June 2017

What is the easiest way to store a variable in node.js?

I am migrating my script from Google Chrome Extension to node.js

And I simply need to store a couple of variables, nothing fancy and performance isn't an issue either, since they would only be accessed when the script is restarted.

In Google Chrome Extension I would use the client side HTML5 storage (localStorage)

However as a server language node.js doesn't have this feature and it's not surprising.

I could of course install some database and being particularly familiar with MySQL this is not an issue, but, if there is a simple way of storing my configs - I would much like to try it out.



via Anonymous

No comments:

Post a Comment