Comparing version 0.5.0 to 0.6.0
@@ -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 @@ ------------------ |
@@ -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
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
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
30688
20
594
283
+ Addedncp@0.4.2(transitive)
- Removedncp@0.2.7(transitive)
Updatedncp@~0.4.2
Updatedrimraf@~2.1.4