@meteor-it/fs
Advanced tools
Comparing version 0.1.2 to 0.2.1
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
2
28
1
3537
3
106
1