Socket
Socket
Sign inDemoInstall

graceful-fs

Package Overview
Dependencies
0
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.3 to 3.0.0

fs.js

4

graceful-fs.js
// Monkey-patching the fs module.
// It's ugly, but there is simply no other way to do this.
var fs = module.exports = require('fs')
var fs = module.exports = require('./fs.js')

@@ -10,4 +10,2 @@ var assert = require('assert')

// The EMFILE enqueuing stuff
var util = require('util')

@@ -14,0 +12,0 @@

@@ -5,3 +5,3 @@ {

"description": "A drop-in replacement for fs, making various improvements.",
"version": "2.0.3",
"version": "3.0.0",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

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

var fs = require('fs')
var fs = require('./fs.js')
var constants = require('constants')

@@ -3,0 +3,0 @@

@@ -10,3 +10,3 @@ # graceful-fs

## Improvements over fs module
## Improvements over [fs module](http://api.nodejs.org/fs.html)

@@ -28,1 +28,11 @@ graceful-fs:

the directory.
## USAGE
```javascript
// use just like fs
var fs = require('graceful-fs')
// now go and do stuff with it...
fs.readFileSync('some-file-or-whatever')
```

@@ -5,3 +5,3 @@ var test = require('tap').test

test('graceful fs is monkeypatched fs', function (t) {
t.equal(fs, require('fs'))
t.equal(fs, require('../fs.js'))
t.end()

@@ -8,0 +8,0 @@ })

var test = require("tap").test
var fs = require("fs")
var fs = require("../fs.js")

@@ -4,0 +4,0 @@ var readdir = fs.readdir

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc