persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
Just as the WebSQL adapter has the ability to specify the name of the DB to write to, localStorage should have this capability as well. I have added a second formal parameter to the persistence.memory.configure function specifying the localStorage variable name. If none is given, it falls back to the default "persistenceData" name.
Just as the WebSQL adapter has the ability to specify the name of the DB to write to, localStorage should have this capability as well. I have added a second formal parameter to the persistence.memory.configure function specifying the localStorage variable name. If none is given, it falls back to the default "persistenceData" name.
Thanks, fantastic library here!