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

fs-extra

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-extra - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

test/fs-integration.test.js

8

CHANGELOG.md

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

0.6.0 / 2013-03-18
------------------
* removed node 0.6 support
* added node 0.10 support
* upgraded to latest `ncp` and `rimraf`.
* optional `graceful-fs` support. Closes #17
0.5.0 / 2013-02-03

@@ -2,0 +10,0 @@ ------------------

25

lib/index.js

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

var fs = require('fs')
var fs = null
, path = require('path')

@@ -6,10 +6,15 @@ , jsonFile = require('jsonfile')

for (var funcName in fs) {
var func = fs[funcName];
if (fs.hasOwnProperty(funcName)) {
if (typeof func == 'function')
fse[funcName] = func;
}
try {
// optional dependency
fs = require("graceful-fs")
} catch (er) {
fs = require("fs")
}
Object.keys(fs).forEach(function(key) {
var func = fs[key];
if (typeof func == 'function')
fse[key] = func;
});
fs = fse;

@@ -93,8 +98,2 @@

//make compatible for Node v0.8
if (typeof fs.exists == 'undefined')
fs.exists = path.exists
if (typeof fs.existsSync == 'undefined')
fs.existsSync = path.existsSync
module.exports = fs

@@ -101,0 +100,0 @@

{
"name": "fs-extra",
"version": "0.5.0",
"version": "0.6.0",
"description": "fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as mkdir -p, cp -r, and rm -rf.",

@@ -42,6 +42,6 @@ "homepage": [

"dependencies": {
"ncp": "0.2.x",
"ncp": "~0.4.2",
"mkdirp": "0.3.x",
"jsonfile": "0.0.x",
"rimraf": "~2.1.2"
"rimraf": "~2.1.4"
},

@@ -51,3 +51,3 @@ "devDependencies": {

"path-extra": "0.0.x",
"testutil": "~0.4.0"
"testutil": "~0.5.0"
},

@@ -54,0 +54,0 @@ "main": "./lib/index",

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

[![build status](https://secure.travis-ci.org/jprichardson/node-fs-extra.png)](http://travis-ci.org/jprichardson/node-fs-extra)

@@ -6,2 +5,4 @@ Node.js: fs-extra

[![build status](https://secure.travis-ci.org/jprichardson/node-fs-extra.png)](http://travis-ci.org/jprichardson/node-fs-extra)
This module adds a few extra file system methods that aren't included in the native `fs` module. It is a drop in replacement for `fs`.

@@ -22,3 +23,3 @@

npm install fs-extra
npm install --save fs-extra

@@ -30,2 +31,5 @@

Drop in replacement for native `fs`.
```javascript

@@ -96,8 +100,3 @@ var fs = require('fs-extra');

### exists() / existsSync()
These methods are actually from `path` in v0.6. But in Node v0.8 they are moved from `path` to `fs`. So you can use this module to help make your modules v0.6 and v0.8 compatible.
### mkdirs(dir, callback)

@@ -220,4 +219,4 @@

Roadmap
-------
Roadmap to 1.0.0
-----------------

@@ -258,10 +257,12 @@ This contains items that I'm considering doing. I'd love community feedback.

Author
------
Contributors
-------------
- [JP Richardson](https://github.com/jprichardson)
- [Mike McNeil](https://github.com/mikermcneil)
- [Ian Crowther](https://github.com/iancrowther)
- `<your name here>`
`node-fs-extra` was written by [JP Richardson][aboutjp]. You should follow him on Twitter [@jprichardson][twitter]. Also read his coding blog [Procbits][procbits]. If you write software with others, you should checkout [Gitpilot][gitpilot] to make collaboration with Git simple.
License

@@ -268,0 +269,0 @@ -------

Sorry, the diff of this file is not supported yet

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