@milliejs/store-filesystem
v0.3.1-alpha.0
Published
A file-based adapter for the MillieJS incremental store utility
Downloads
4
Readme
MillieJS: File-system Store
Getting Started
Installation
npm add milliejs @milliejs/store-filesystem
Usage
import MillieJS from "milliejs"
import MillieCRUDStore from "@milliejs/store-*"
import GooglePubSubStore from "@milliejs/store-google-pubsub"
import FilesystemStore from "@milliejs/store-filesystem"
const millie = new MillieJS()
const replicaStore = new FilesystemStore({
filepath: "./replica.json",
encoding: "utf8",
})
const muUpstreamCRUDInterface = new MillieCRUDStore({})
const myUpstreadGooglePubSubInterface = new GooglePubSubStore({})
const personResource = { id: "person" }
millie.registerResource(personResource, replicaStore, {
sourcePublisher: muUpstreamCRUDInterface,
sourceSubscriber: myUpstreadSubscriberInterface,
})
Contributing
The MillieJS library is currently in its early development stages and is welcoming contributions, feature requests, and feedback.
Disclaimer
The MillieJS library is currently in its early development stages and is not ready for use in production applications. There may be bugs and performance issues that have not yet been addressed. Use the library at your own risk and be sure to thoroughly test any implementation before deploying it to a live environment.
Please note that the API and functionality may change as the library evolves and stabilizes. If you choose to use MillieJS in your project, we recommend regularly checking for updates and making any necessary modifications to your code to ensure compatibility.
In summary, do not use the MillieJS library in a production environment until further notice.