```npm install --save fs-extra
[email protected] /Users/ryancopley/Projects/smash
└─┬ [email protected]
├── [email protected]
└── [email protected]
cat node_modules/fs-extra/lib/index.js
var assign = require('./util/assign')
var fse = {}
var gfs = require('graceful-fs')
// attach fs methods to fse
Object.keys(gfs).forEach(function (key) {
fse[key] = gfs[key]
})
var fs = fse
assign(fs, require('./copy'))
assign(fs, require('./copy-sync'))
assign(fs, require('./mkdirs'))
assign(fs, require('./remove'))
assign(fs, require('./json'))
assign(fs, require('./move')) < ---- NO MOVE SYNC
assign(fs, require('./empty'))
assign(fs, require('./ensure'))
assign(fs, require('./output'))
module.exports = fs
// maintain backwards compatibility for awhile
var jsonfile = {}
Object.defineProperty(jsonfile, 'spaces', {
get: function () {
return fs.spaces // found in ./json
},
set: function (val) {
fs.spaces = val
}
})
```
Is the npm package up-to-date? If not, could it please be? :-)
Thanks,
Ryan
@RyanCopley moveSync is implemented but is not published on npm yet. Surely, new version will be published soon, but I personally don't know when exactly that'd be. @jprichardson and @RyanZim should have a better idea about this.
@jprichardson Perhaps we should publish v2.1.0 soon?
+1
@jprichardson Perhaps we should publish v2.1.0 soon?
Sounds good. I'll plan tomorrow. @RyanZim can you prepare the CHANGELOG? Thank you!
Sure, PR on the way.
I think the npm module still needs published, not 100% positive though.
Yep, only @jprichardson can do that.
OK, got publish rights. v2.1.0 is shipped: https://github.com/jprichardson/node-fs-extra/commit/90b3609b894b27ff9ccd1f820c9a2eb44314f809. :tada:
Thank you!
Thanks!
Most helpful comment
PR done: https://github.com/jprichardson/node-fs-extra/pull/386.