0.0.1 β€’ Published 5 months ago

@fusedb/csv v0.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

πŸ”Œ FUSE Driver: CSV

A FUSE driver for storing data using CSV as the storage engine.

npm i @fushdb/csv npm license FUSE ⚑


πŸ“¦ Installation

npm install @fusedb/core
npm install @fusedb/csv

πŸš€ Usage

const FUSE = require("@fusedb/core");
const CSVDriver = require("@fusedb/csv");

const db = new FUSE({
  driver: new CSVDriver({
    path: "./database/data.ycsvaml",
  }),
});

(async () => {
  await db.set("example", { hello: "world" });
  const data = await db.get("example");
  
  console.log(data); // { hello: "world" }
})();

βš™οΈ Options

OptionTypeDescription
pathstringFile path for the CSV file
autosavebooleanAutomatically save after write actions

βœ… Features

  • βœ… Full compatibility with FUSE Core API
  • βœ… Persistent storage via CSV

πŸ“š 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.