Repository URL to install this package:
|
Version:
1.16.0 ▾
|
copy() if source and dest are the same. [#230][#230]emptyDir() does not have a callback: [#229][#229]copy() with two arguments (w/o callback) was broken. See: #215copySync() made preserveTimestamps default consistent with copy() which is false. See: #208copy() hangup in copying blockDevice / characterDevice / /dev/null. See: #193outputJson{Sync}() spacing adherence to fs.spacescopySync() when clogger=true and the destination is read only. See: #190walk() function into its own module klaw.walk()delete() and deleteSync(). See: #171move() when moving across devices. #170ensureSymlink() and ensureLink() should not throw errors if link exists. #169ensureLink{Sync}() and ensureSymlink{Sync}(). See: #165hasMillisResSync() on module load. See: #149.
Fixes regression that was introduced in 0.21.0.copy(). See: #54copy() and copySync(). See: #141graceful-fs@3.x to 4.x. This brings in features from amazing-graceful-fs (much cleaner code / less hacks)jsonfile aliases with File in the name, they weren't documented and probably weren't in use e.g.
this package had both fs.readJsonFile and fs.readJson that were aliases to each other, now use fs.readJson.jsonfile@2.1.0, can now pass JSON revivers/replacers to readJson(), writeJson(), outputJson()fs.copy() had support for Node v0.8, dropped supportEEXIST when clobbering on some Linux systems. #134F_OK (#120)move() a bit. https://github.com/jprichardson/node-fs-extra/commit/92838980f25dc2ee4ec46b43ee14d3c4a1d30c1bemptyDir() and emptyDirSync()copySync added clobber option (before always would clobber, now if clobber is false it throws an error if the destination exists).
Only works with files at the moment.createOutputStream() added. See: #118fs.move when clobber is true and destination is a directory, it should clobber. #114fs.mkdirs fix infinite loop on Windows. See: See https://github.com/substack/node-mkdirp/pull/74 and https://github.com/substack/node-mkdirp/issues/66fs.copy for Node v0.8 (support is temporary and will be removed in the near future)setImmediate is not available, fall back to process.nextTickfs.move() into itself. Closes #104fs.move() moving directory across device. Closes #108fs.copy() bug. Closes #98ncp, imported code inio.jsgraceful-fs is now a dependencycopy/copySync from fs.copy(src, dest, [filters], callback) to fs.copy(src, dest, [options], callback) #100touch and touchSync methods (they didn't handle permissions like UNIX touch)"ncp": "^0.6.0" to "ncp": "^1.0.1"mkdirp => minimist and mkdirp are no longer dependences, should now appease people who wanted mkdirp to be --use_strict safe. See #59copySync() #85copySync() preserve file permissions #80"ncp": "^0.5.1" to "ncp": "^0.6.0"jsonfile": "^1.2.0" to jsonfile": "^2.0.0" => on write, json files now have \n at end. Also adds options.throws to readJsonSync()
see https://github.com/jprichardson/node-jsonfile#readfilesyncfilename-options for more details."jsonfile": "~1.1.0" to "jsonfile": "^1.2.0", bumped minor because of jsonfile dep change
from ~ to ^. #670.8.x support, 0.9.0 was published moments ago and should have been done therencp from ~0.4.2 to ^0.5.1, #58rimraf from ~2.2.6 to ^2.2.8mkdirp from 0.3.x to ^0.5.0ensureFile(), ensureFileSync()ensureDir(), ensureDirSync() #31move() method. From: https://github.com/andrewrk/node-mvfilter implemented on copy() and copySync(). (Srirangan / #36)copySync() implemented (Srirangan / #33)jsonfile version 1.1.0 which gives options params for the JSON methods. Closes #32copy() now works if destination directory does not exist. Closes #29homepage field in package.json to remove NPM warning4 to 2 to follow Node conventionsjsonfile deprimraf depstrict mode, closes #24outputJson()/outputJsonSync(), closes #23ncp and rimraf.graceful-fs support. Closes #17readTextFile.readJSONFile to readJSON and readJson, same with write.jsonfile from 4 to 2.testutil deps for tests.touch() to createFile()outputFile() and outputFileSync()readTextFile() and readTextFileSync().touch() and touchSync() methods.mkdir to mkdirs/mkdirp.rimraf dep.readJSONFile.deleteSync() didn't exist.remove()/delete() that wouldn't execute the function if a callback wasn't passed.copyFile() to copy(). copy() can now copy directories (recursively) too.rmrf() to remove().remove() aliased with delete().mkdirp capabilities. Named: mkdir(). Hides Node.js native mkdir().fs module with new functions, I now copy over the native methods to a new object and export that instead.