npm.io
0.74.45 • Published 1 week ago

@stacksjs/storage

Licence
MIT
Version
0.74.45
Deps
0
Vulns
0
Weekly
0
Stars
620

Stacks Storage

This package contains the Stacks File System source.

Features

  • Easily create your own cloud storage
  • Driver-based architecture
  • Local, S3, and memory drivers
  • Laravel-like Storage API

TODO

  • Add Google Cloud Storage driver
  • Add Azure Blob Storage driver

Usage

bun install -d @stacksjs/storage

Now, you can use it in your project:

import {
  _dirname,
  copyFolder,
  deleteEmptyFolders,
  deleteFiles,
  deleteFolder,
  doesFolderExist,
  fileURLToPath,
  hasComponents,
  hasFiles,
  hasFunctions,
  isFile,
  isFolder,
  readJsonFile,
  readTextFile,
  writeJsonFile,
  writeTextFile,
} from '@stacksjs/storage'

// wip

To view the full documentation, please visit https://stacksjs.com/storage.

Testing

bun test

Changelog

Please see our releases page for more information on what has changed recently.

Contributing

Please review the Contributing Guide for details.

Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Discussions on GitHub

For casual chit-chat with others using this package:

Join the Stacks Discord Server

License

The MIT License (MIT). Please see LICENSE for more information.

Made with

Keywords