Socket
Socket
Sign inDemoInstall

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 3.2.0 to 3.2.1

7

es6guardian.js

@@ -0,4 +1,9 @@

// September 5, 2015
// https://github.com/bevry/base
if ( process.env.REQUIRE_ES6 ) {
module.exports = require('./es6/lib/safefs.js')
}
else if ( !process.versions.v8 || process.versions.v8.split('.')[0] < 4 ) {
module.exports = require('./es5/lib/safefs.js')
}
else {

@@ -9,5 +14,5 @@ try {

catch (e) {
// console.error('Downgrading from ES6 to ES5 due to:', e.stack)
// console.log('Downgrading from ES6 to ES5 due to:', e.stack)
module.exports = require('./es5/lib/safefs.js')
}
}
# History
## v3.2.1 September 5, 2015
- Fixed node <0.10 support (regression since v3.2.0)
- Unfortunately our dev dependencies don't support this early, so no travis ci tests, manual tests pass
## v3.2.0 September 5, 2015

@@ -4,0 +8,0 @@ - Moved from CoffeeScript to ES6+

4

package.json
{
"title": "Safe FS",
"name": "safefs",
"version": "3.2.0",
"version": "3.2.1",
"description": "Stop getting EMFILE errors! Open only as many files as the operating system supports.",

@@ -47,3 +47,3 @@ "homepage": "https://github.com/bevry/safefs",

"engines": {
"node": ">=0.4"
"node": ">=0.10"
},

@@ -50,0 +50,0 @@ "dependencies": {

@@ -46,3 +46,3 @@

``` javascript
var safefs = require('safefs');
var safefs = require('safefs')
```

@@ -63,3 +63,3 @@

- `ensurePath(path, options, next)` - ensure the full path exists, equivalant to unix's `mdir -p path`
- `ensurePath(path, options, next)` - ensure the full path exists, equivalent to unix's `mdir -p path`

@@ -66,0 +66,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