1.0.1 • Published 10 months ago

@storecraft/storage-local v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Storecraft Local FileSystem Storage for node, deno and bun

Local filesystem based Storage for node.js.

Features:

  • Supports streaming Get / Put / Delete
npm i @storecraft/storage-local

usage

Example Node.js

import { NodeLocalStorage } from '@storecraft/storage-local/node';
import { BunLocalStorage } from '@storecraft/storage-local/bun';
import { DenoLocalStorage } from '@storecraft/storage-local/deno';

const storage = new Storage(path.join(homedir(), 'tomer'));

// write
const key = 'folder1/tomer.txt';
await storage.putBlob(
  key,
  new Blob(['this is some text from tomer :)'])
);
// read
const { value } = await storage.getBlob(key);
Author: Tomer Shalev (tomer.shalev@gmail.com)
1.0.1

10 months ago

1.0.0

10 months ago