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

safefs

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

safefs - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

7

out/lib/safefs.js

@@ -59,3 +59,3 @@ // Generated by CoffeeScript 1.6.2

if ((_ref4 = options.mode) == null) {
options.mode = 0x1ff & (~process.umask());
options.mode = null;
}

@@ -68,3 +68,3 @@ safefs.exists(path, function(exists) {

}
parentPath = balUtilPaths.getParentPathSync(path);
parentPath = safefs.getParentPathSync(path);
return safefs.ensurePath(parentPath, options, function(err) {

@@ -141,2 +141,5 @@ if (err) {

}
if (mode == null) {
mode = 0x1ff & (~process.umask());
}
safefs.openFile(function() {

@@ -143,0 +146,0 @@ return fsUtil.mkdir(path, mode, function(err) {

{
"name": "safefs",
"version": "2.0.2",
"version": "2.0.3",
"description": "Say goodbye to EMFILE errors! Open only as many files as the operating system supports",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/bevry/safefs",

@@ -56,16 +56,21 @@ # Safe FS [![Build Status](https://secure.travis-ci.org/bevry/safefs.png?branch=master)](http://travis-ci.org/bevry/safefs)

Arguments suffixed with `?` are optional.
- Custom methods:
- `openFile(next)`
- `closeFile()`
- `getParentPathSync(path)`
- `ensurePath(path, options?, next)` - will attempt to ensure the path exists, options:
- `mode` - defaults to `null`
- Wrapped fs/path methods:
- `readFile`
- `writeFile`
- `appendFile`
- `mkdir`
- `stat`
- `readdir`
- `unlink`
- `rmdir`
- `exists`
- `existsSync`
- `readFile(path, options?, next)`
- `writeFile(path, data, options?, next)` - will also attempt to ensure the path exists
- `appendFile(path, data, options?, next)` - will also attempt to ensure the path exists
- `mkdir(path, mode?, next)` - mode defaults to `0o777 & (~process.umask())`
- `stat(path, next)`
- `readdir(path, next)`
- `unlink(path, next)`
- `rmdir(path, next)`
- `exists(path, next)`
- `existsSync(path)`

@@ -72,0 +77,0 @@

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