Comparing version 0.1.3 to 0.1.4
@@ -19,7 +19,7 @@ 'use strict'; | ||
it('should keep support sync methods', function () { | ||
it("should keep support sync methods", function () { | ||
_spec_helper2['default'].expect(_srcFileAsync2['default'].existsSync(__filename)).to.ok; | ||
}); | ||
it('should keep support callback methods', function (done) { | ||
it("should keep support callback methods", function (done) { | ||
_srcFileAsync2['default'].readFileCallback(__filename, function (err, file_content) { | ||
@@ -165,2 +165,2 @@ _spec_helper2['default'].expect(file_content.toString()).not.been.undefined; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpbGVfYXN5bmNfc3BlYy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OzJCQUFjLGVBQWU7Ozs7d0JBQ2QsVUFBVTs7Ozs0QkFDTCxtQkFBbUI7Ozs7QUFFdkMsUUFBUSxDQUFDLFVBQVUsRUFBRSxZQUFXOztBQUU5QixJQUFFLENBQUMsa0NBQWtDLEVBQUUsWUFBVztBQUNoRCw2QkFBRSxNQUFNLENBQUMsMEJBQVEsVUFBVSxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQztHQUNoRCxDQUFDLENBQUM7O0FBRUgsSUFBRSxDQUFDLHNDQUFzQyxFQUFFLFVBQVMsSUFBSSxFQUFFO0FBQ3hELDhCQUFRLGdCQUFnQixDQUFDLFVBQVUsRUFBRSxVQUFTLEdBQUcsRUFBRSxZQUFZLEVBQUU7QUFDL0QsK0JBQUUsTUFBTSxDQUFDLFlBQVksQ0FBQyxRQUFRLEVBQUUsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDO0FBQ3JELFVBQUksRUFBRSxDQUFDO0tBQ1IsQ0FBQyxDQUFDO0dBQ0osQ0FBQyxDQUFDOztBQUVILElBQUUsQ0FBQyxvQkFBb0IsRUFBRSxZQUFZO0FBQ25DLFdBQU8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vLmJlLmVxdWFsKGZhbHNlKTtcbiAgICAgIH0pO1xuICAgIH0pO1xuICB9KTtcblxufSk7XG4iXSwic291cmNlUm9vdCI6Ii9maWxlLWFzeW5jOjAuMS4zL3NwZWMifQ== |
@@ -30,2 +30,2 @@ 'use strict'; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNwZWNfaGVscGVyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDOztBQUUzQixJQUFJLE9BQU8sR0FBRztBQUNaLFFBQU0sRUFBRyxPQUFPLENBQUMsY0FBYyxDQUFDLENBQUMsTUFBTTs7QUFFdkMsY0FBWSxFQUFBLHdCQUFhO3NDQUFULE9BQU87QUFBUCxhQUFPOzs7QUFDckIsV0FBTyxJQUFJLENBQUMsT0FBTyxNQUFBLENBQVosSUFBSSxHQUNULEdBQUcsRUFBRSxNQUFNLEVBQUUsVUFBVSxTQUFLLE9BQU8sRUFDcEMsQ0FBQztHQUNIOztBQUVELHNCQUFvQixFQUFBLGdDQUFhO3VDQUFULE9BQU87QUFBUCxhQUFPOzs7QUFDN0IsV0FBTyxJQUFJLENBQUMsT0FBTyxNQUFBLENBQVosSUFBSSxHQUNULEdBQUcsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLFVBQVUsU0FBSyxPQUFPLEVBQzNDLENBQUM7R0FDSDtDQUNGLENBQUM7O3FCQUVhLE9BQU8iLCJmaWxlIjoic3BlY19oZWxwZXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgcGF0aCA9IHJlcXVpcmUoJ3BhdGgnKTtcblxudmFyIEhlbHBlcnMgPSB7XG4gIGV4cGVjdCA6IHJlcXVpcmUoJ2F6ay1kZXYvY2hhaScpLmV4cGVjdCxcblxuICBmaXh0dXJlX3BhdG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QUVhLE9BQU8iLCJmaWxlIjoic3BlY19oZWxwZXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgcGF0aCA9IHJlcXVpcmUoJ3BhdGgnKTtcblxudmFyIEhlbHBlcnMgPSB7XG4gIGV4cGVjdCA6IHJlcXVpcmUoJ2F6ay1kZXYvY2hhaScpLmV4cGVjdCxcblxuICBmaXh0dXJlX3BhdGgoLi4uZml4dHVyZSkge1xuICAgIHJldHVybiBwYXRoLnJlc29sdmUoXG4gICAgICAnLicsICdzcGVjJywgJ2ZpeHR1cmVzJywgLi4uZml4dHVyZVxuICAgICk7XG4gIH0sXG5cbiAgZml4dHVyZV9yZXF1aXJlX3BhdGgoLi4uZml4dHVyZSkge1xuICAgIHJldHVybiBwYXRoLnJlc29sdmUoXG4gICAgICAnLicsICdsaWInLCAnc3BlYycsICdmaXh0dXJlcycsIC4uLmZpeHR1cmVcbiAgICApO1xuICB9LFxufTtcblxuZXhwb3J0IGRlZmF1bHQgSGVscGVycztcbiJdLCJzb3VyY2VSb290IjoiL2ZpbGUtYXN5bmM6MC4xLjMvc3BlYyJ9 |
@@ -40,7 +40,7 @@ 'use strict'; | ||
async_methods.forEach(function (method) { | ||
final[method + 'Callback'] = extra[method]; | ||
final[method] = async_object[method + 'Async'].bind(async_object); | ||
final[method + "Callback"] = extra[method]; | ||
final[method] = async_object[method + "Async"].bind(async_object); | ||
}); | ||
module.exports = final; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpbGUtYXN5bmMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozt3QkFBZSxVQUFVOzs7O0FBQ3pCLElBQUksS0FBSyxHQUFHLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQzs7QUFFaEMsSUFBSSxLQUFLLEdBQUc7QUFDVixnQkFBYyxFQUFFLEtBQUssQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEtBQUssQ0F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EJCLlByb21pc2UoKHJlc29sdmUpID0+IHtcbiAgICAgIHRoaXMuZXhpc3RzQ2FsbGJhY2soZnVsbF9wYXRoLCByZXNvbHZlKTtcbiAgICB9KTtcbiAgfSxcbn07XG5cbnZhciBhc3luY19tZXRob2RzID0gW107XG52YXIgYXN5bmNfb2JqZWN0ICA9IEJCLnByb21pc2lmeUFsbChleHRyYSwge1xuICAvLyBTa2lwIC4qU3luYyBtZXRob2RzXG4gIGZpbHRlcjogKG5hbWUsIGZ1bmMsIHRhcmdldCwgcGFzc2VzRGVmYXVsdEZpbHRlcikgPT4ge1xuICAgIGlmIChwYXNzZXNEZWZhdWx0RmlsdGVyICYmIHRhcmdldCA9PT0gZXh0cmEgJiYgIWZpbmFsW25hbWVdKSB7XG4gICAgICBpZiAobmFtZS5tYXRjaCgvU3luYyQvKSkge1xuICAgICAgICBmaW5hbFtuYW1lXSA9IGV4dHJhW25hbWVdLmJpbmQoZXh0cmEpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgYXN5bmNfbWV0aG9kcy5wdXNoKG5hbWUpO1xuICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIGZhbHNlO1xuICB9LFxufSk7XG5cbi8vIFJlbmFtZSAuKkFzeW5jIG1ldGhvZHNcbmFzeW5jX21ldGhvZHMuZm9yRWFjaCgobWV0aG9kKSA9PiB7XG4gIGZpbmFsW21ldGhvZCArIFwiQ2FsbGJhY2tcIl0gPSBleHRyYVttZXRob2RdO1xuICBmaW5hbFttZXRob2RdID0gYXN5bmNfb2JqZWN0W21ldGhvZCArIFwiQXN5bmNcIl0uYmluZChhc3luY19vYmplY3QpO1xufSk7XG5cbm1vZHVsZS5leHBvcnRzID0gZmluYWw7XG4iXSwic291cmNlUm9vdCI6Ii9maWxlLWFzeW5jOjAuMS4zL3NyYyJ9 |
{ | ||
"name": "file-async", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "fs-extra + bluebird promisify", | ||
"main": "index.js", | ||
"dependencies": { | ||
"bluebird": "^2.9.27", | ||
"fs-extra": "^0.19.0", | ||
"source-map-support": "^0.3.1" | ||
"bluebird": "^3.0.5", | ||
"fs-extra": "^0.26.2", | ||
"source-map-support": "^0.3.3" | ||
}, | ||
"devDependencies": { | ||
"azk-dev": "0.0.15", | ||
"babel-runtime": "^5.5.6", | ||
"azk-dev": "0.1.0", | ||
"gulp": "^3.9.0" | ||
@@ -15,0 +14,0 @@ }, |
100
README.md
@@ -5,5 +5,6 @@ # file-async | ||
Use async fs. No more blocking code. | ||
fs-extra + bluebird promisify | ||
all functions from [fs](https://nodejs.org/api/fs.html) and [fs-extra](https://github.com/jprichardson/node-fs-extra) _bluebird's promisified_ | ||
No more blocking code. | ||
## Install with [npm](https://www.npmjs.com/package/file-async) | ||
@@ -21,9 +22,9 @@ | ||
var TMP_FILE_PATH = '/tmp/file_content.js'; | ||
// touch | ||
// "touch" a new empty file | ||
return fsAsync.createFile(TMP_FILE_PATH).then(function () { | ||
// get stat | ||
// get stats | ||
return fsAsync.stat(TMP_FILE_PATH); | ||
}) | ||
.then(function(file_stat) { | ||
// check | ||
// check is it is a file | ||
console.log(TMP_FILE_PATH, 'is a file?', file_stat.isFile()); | ||
@@ -36,3 +37,3 @@ }) | ||
.then(function() { | ||
// exits? | ||
// exists? | ||
return fsAsync.exists(TMP_FILE_PATH); | ||
@@ -46,2 +47,89 @@ }) | ||
## Functions | ||
### async functions (Promises) | ||
- access | ||
- appendFile | ||
- chmod | ||
- chown | ||
- close | ||
- copy | ||
- createFile | ||
- createOutputStream | ||
- createReadStream | ||
- createWriteStream | ||
- delete | ||
- emptyDir | ||
- emptydir | ||
- ensureDir | ||
- ensureFile | ||
- exists | ||
- fchmod | ||
- fchown | ||
- fdatasync | ||
- FileReadStream | ||
- FileWriteStream | ||
- fstat | ||
- fsync | ||
- ftruncate | ||
- futimes | ||
- lchmod | ||
- lchown | ||
- link | ||
- lstat | ||
- lutimes | ||
- mkdir | ||
- mkdirp | ||
- mkdirs | ||
- move | ||
- open | ||
- outputFile | ||
- outputJson | ||
- outputJSON | ||
- read | ||
- readdir | ||
- readFile | ||
- readJson | ||
- readJSON | ||
- readJsonFile | ||
- readJSONFile | ||
- readlink | ||
- ReadStream | ||
- realpath | ||
- remove | ||
- rename | ||
- rmdir | ||
- stat | ||
- Stats | ||
- symlink | ||
- truncate | ||
- unlink | ||
- unwatchFile | ||
- utimes | ||
- watch | ||
- watchFile | ||
- write | ||
- writeFile | ||
- writeJson | ||
- writeJSON | ||
- writeJsonFile | ||
- writeJSONFile | ||
- WriteStream | ||
----------- | ||
#### callback node.js old callback way (do use this) | ||
> accessCallback, appendFileCallback, chmodCallback, chownCallback, closeCallback, copyCallback, createFileCallback, createOutputStreamCallback, createReadStreamCallback, createWriteStreamCallback, deleteCallback, emptyDirCallback, emptydirCallback, ensureDirCallback, ensureFileCallback, existsCallback, fchmodCallback, fchownCallback, fdatasyncCallback, FileReadStreamCallback, FileWriteStreamCallback, fstatCallback, fsyncCallback, ftruncateCallback, futimesCallback, lchmodCallback, lchownCallback, linkCallback, lstatCallback, lutimesCallback, mkdirCallback, mkdirpCallback, mkdirsCallback, moveCallback, openCallback, outputFileCallback, outputJsonCallback, outputJSONCallback, readCallback, readdirCallback, readFileCallback, readJsonCallback, readJSONCallback, readJsonFileCallback, readJSONFileCallback, readlinkCallback, ReadStreamCallback, realpathCallback, removeCallback, renameCallback, rmdirCallback, statCallback, StatsCallback, symlinkCallback, truncateCallback, unlinkCallback, unwatchFileCallback, utimesCallback, watchCallback, watchFileCallback, writeCallback, writeFileCallback, writeJsonCallback, writeJSONCallback, writeJsonFileCallback, writeJSONFileCallback, WriteStreamCallback | ||
----------- | ||
#### sync functions (blocking code - do use this) | ||
> accessSync, existsSync, readFileSync, closeSync, openSync, readSync, writeSync, renameSync, truncateSync, ftruncateSync, rmdirSync, fdatasyncSync, fsyncSync, mkdirSync, readdirSync, fstatSync, lstatSync, statSync, readlinkSync, symlinkSync, linkSync, unlinkSync, fchmodSync, chmodSync, fchownSync, chownSync, utimesSync, futimesSync, writeFileSync, appendFileSync, realpathSync, lutimesSync, lchownSync, lchmodSync, copySync, removeSync, deleteSync, mkdirsSync, mkdirpSync, createFileSync, ensureFileSync, ensureDirSync, outputFileSync, readJsonFileSync, readJSONFileSync, readJsonSync, readJSONSync, outputJsonSync, outputJSONSync, writeJsonFileSync, writeJSONFileSync, writeJsonSync, writeJSONSync, emptyDirSync, emptydirSync | ||
----------- | ||
## CONTRIBUTING | ||
@@ -48,0 +136,0 @@ |
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
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
46131
2
10
304
185
+ Addedbluebird@3.7.2(transitive)
+ Addedfs-extra@0.26.7(transitive)
+ Addedklaw@1.3.1(transitive)
- Removedbluebird@2.11.0(transitive)
- Removedfs-extra@0.19.0(transitive)
- Removedgraceful-fs@3.0.12(transitive)
- Removednatives@1.1.6(transitive)
Updatedbluebird@^3.0.5
Updatedfs-extra@^0.26.2
Updatedsource-map-support@^0.3.3