Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@meteor-it/fs

Package Overview
Dependencies
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@meteor-it/fs

Wrappers for native fs module

  • 1.1.0
  • npm
  • Socket score

Version published
Weekly downloads
17
increased by240%
Maintainers
2
Weekly downloads
 
Created
Source

FS

Wrapper around node.js native fs library. Have same methods as fs, but promisified

Addictional methods

walkDir(dir, cb)

Asynchonously walks directory. Returns file list when done, cb is called when any directory was discovered

let filesAwaited = [];
let filesCont = [];
filesAwaited = await walkDir(__dirname, (file)=>{
    filesCont.push(file);
});

// filesAwaited will be same as filesCont

exists(file)

Returns true if file exists

isFile(file)

Returns true if 'file' is file

isDirectory(file)

Returns true if 'file' is directory

getReadStream/getWriteStream

Same as fs.createReadStream/fs.createWriteStream

Keywords

FAQs

Package last updated on 01 Dec 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc