@wessberg/filesaver
v1.0.11
Published
A Promise-based class that can save/remove files to/from disk and make folders recursively.
Downloads
75
Maintainers
Readme
A Promise-based class that can save/remove files to/from disk and make folders recursively.
Description
DISCLAIMER
This library will be deprecated. There are better alternatives built directly
into the fs
module now. Use that instead.
Table of Contents
Install
npm
$ npm install @wessberg/filesaver
Yarn
$ yarn add @wessberg/filesaver
pnpm
$ pnpm add @wessberg/filesaver
Usage
const fileSaver = new FileSaver();
// Just a simple Promise-based async I/O method.
await fileSaver.save("some_file.ts", "hello world!");
// A recursive mkDir (like mkDir -f).
await fileSaver.makeDirectory("/foo/bar/baz");
Contributing
Do you want to contribute? Awesome! Please follow these recommendations.
Maintainers
| | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Frederik WessbergTwitter: @FredWessbergGithub: @wessbergLead Developer |
Backers
| | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | BubblesTwitter: @use_bubbles |
Patreon
License
MIT © Frederik Wessberg (@FredWessberg) (Website)