You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@wessberg/filesaver

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wessberg/filesaver

A Promise-based class that can save/remove files to/from disk and make folders recursively.

1.0.11
latest
Source
npmnpm
Version published
Weekly downloads
4
-78.95%
Maintainers
1
Weekly downloads
 
Created
Source

A Promise-based class that can save/remove files to/from disk and make folders recursively.

Downloads per month NPM version Dependencies Contributors code style: prettier License: MIT Support on Patreon

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 Wessberg
Frederik Wessberg
Twitter: @FredWessberg
Github: @wessberg
Lead Developer

Backers

Bubbles
Bubbles
Twitter: @use_bubbles

Patreon

Patrons on Patreon

License

MIT © Frederik Wessberg (@FredWessberg) (Website)

Keywords

file

FAQs

Package last updated on 06 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts