|LokiJS Reaches 1.4|
|Friday, 08 July 2016|
It supports collections, much like MongoDB, and saves data to disk in JSON. This allows you to resume state across sessions, and means your data is portable. There's a sandboxed environment where you can try out LokiJS:
The improvements to the new version add a NativeScript adapter so LokiJS can persist data in apps written with NativeScript. Nativescript is gaining ground among developers of apps for mobile devices because of its performance compared to Cordova and Phonegap. Being able to persist data in NativeScript apps is, according to Joe Minichino, chief developer of LokiJS, "a huge bonus", especially as storage options usually used in browsers such as localStorage or indexeddb are not available in NativeScript. This is due to the fact that the apps are compiled to native code, rather than being wrapped in native webviews, as is the case for Cordova/ and Phonegap.
LokiJS has benefitted from the development of a number of persistence adapters since it was first released. In addition to NativeScript, there is a Cordova-FS adapter that writes files to filesystem on mobile; and msgpack which utilizes msgpack instead of JSON to provide a faster, more compressed solutoin. There is also a loki-session project that utilizes LokiJS for storing sessions with ExpressJS.
Going forward, the developers plan to develop a persistence adapter more suited to server-side needs, so that instead of serializing the entire db in one file, it will store separate collections in separate files.
or email your comment to: firstname.lastname@example.org
|Last Updated ( Friday, 08 July 2016 )|