0.0.1 β’ Published 5 months ago
@fusedb/toml v0.0.1
π FUSE Driver: TOML
A FUSE driver for storing data using TOML as the storage engine.
π¦ Installation
npm install @fusedb/core
npm install @fusedb/tomlπ Usage
const FUSE = require("@fusedb/core");
const TOMLDriver = require("@fusedb/toml");
const db = new FUSE({
driver: new TOMLDriver({
path: "./database/data.toml",
}),
});
(async () => {
await db.set("example", { hello: "world" });
const data = await db.get("example");
console.log(data); // { hello: "world" }
})();βοΈ Options
| Option | Type | Description |
|---|---|---|
path | string | File path for the TOML file |
autosave | boolean | Automatically save after write actions |
β Features
- β Full compatibility with FUSE Core API
- β
Persistent storage via
TOML
π Related
π€ Contributing
We welcome community contributions!
If youβre building your own driver, feel free to publish it using:
fusedb-<name>- or
@your-org/fusedb-<name>
Follow the FUSE Driver Guidelines for more details.
π§Ύ License
Licensed under the Apache-2.0.
0.0.1
5 months ago