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

@meteor-it/fs

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@meteor-it/fs - npm Package Compare versions

Comparing version 0.1.2 to 0.2.1

index.ts

19

package.json
{
"name": "@meteor-it/fs",
"version": "0.1.2",
"description": "I",
"version": "0.2.1",
"description": "Wrappers for native fs module",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"meteor-it"
"meteor-it",
"fs"
],
"author": "Yaroslaw Bolyulin <iam@f6cf.pw> (http://f6cf.pw/)",
"author": "Yaroslaw Bolyukin <iam@f6cf.pw> (http://f6cf.pw/)",
"license": "MIT",
"devDependencies": {},
"dependencies": {
"@meteor-it/utils-common": "latest"
},
"peerDependencies": {},
"optionalDependencies": {},
"repository": "gitlab:Creeplays/meteor-it-framework",
"engines": {
"node": "^7.8.0"
}
}

@@ -1,2 +0,28 @@

# fs
I
# 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
```js
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
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