This package contains the Stacks File System source.
- Easily create your own cloud storage
- Driver-based architecture
- Laravel-like Storage API
- Drop-in Node.js module replacement
bun install -d @stacksjs/storage
Now, you can use it in your project:
import {
_dirname,
copyFolder,
deleteEmptyFolders,
deleteFiles,
deleteFolder,
doesFolderExist,
fileURLToPath,
fs, // fs-extra Node module
hasComponents,
hasFiles,
hasFunctions,
isFile,
isFolder,
readJsonFile,
readTextFile,
writeJsonFile,
writeTextFile,
} from '@stacksjs/storage'
// wip
To view the full documentation, please visit https://stacksjs.org/storage.
bun test
Please see our releases page for more information on what has changed recently.
Please review the Contributing Guide for details.
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
For casual chit-chat with others using this package:
Join the Stacks Discord Server
The MIT License (MIT). Please see LICENSE for more information.
Made with 💙