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

file-async

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-async - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

13

lib/spec/file_async_spec.js

@@ -19,2 +19,13 @@ 'use strict';

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) {
_srcFileAsync2['default'].readFileCallback(__filename, function (err, file_content) {
_spec_helper2['default'].expect(file_content.toString()).not.been.undefined;
done();
});
});
it('should read a file', function () {

@@ -154,2 +165,2 @@ return _srcFileAsync2['default'].readFile(__filename).then(function (file_content) {

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpbGVfYXN5bmNfc3BlYy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OzJCQUFjLGVBQWU7Ozs7d0JBQ2QsVUFBVTs7Ozs0QkFDTCxtQkFBbUI7Ozs7QUFFdkMsUUFBUSxDQUFDLFVBQVUsRUFBRSxZQUFXOztBQUU5QixJQUFFLENBQUMsb0JBQW9CLEVBQUUsWUFBWTtBQUNuQyxXQUFPLDBCQUFRLFFBQVEsQ0FBQyxVQUFVLENBQUMsQ0FBQyxJQUFJLENBQUMsVUFBUyxZQUFZLEVBQUU7QUFDOUQsYUFBTyx5QkFBRSxNQUFNLENBQUMsWUFBWSxDQUFDLFFBQVEsRUFBRSxDQUFDLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUM7S0FDN0QsQ0FBQyxDQUFDO0dBQ0osQ0FBQyxDQUFDOztBQUVILElBQUUsQ0FBQyw2QkFBNkIsRUFBRSxZQUFZO0FBQzVDLFdBQU8sMEJBQVEsSUFBSSxDQUFDLFVBQVUsQ0FBQyxDQUFDLElB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m9sZGVyMScpO1xuICAgIH0pXG4gICAgLnRoZW4oZnVuY3Rpb24oKSB7XG4gICAgICAvLyBzdGF0OiBjaGVjayBmaWxlcyBzdGF0c1xuICAgICAgcmV0dXJuIGZzQXN5bmMuZXhpc3RzKCcvdG1wL2ZvbGRlcjEnKS50aGVuKGZ1bmN0aW9uKGV4aXN0c19yZXN1bHQpIHtcbiAgICAgICAgcmV0dXJuIGguZXhwZWN0KGV4aXN0c19yZXN1bHQpLnRvLmJlLmVxdWFsKGZhbHNlKTtcbiAgICAgIH0pO1xuICAgIH0pO1xuICB9KTtcblxufSk7XG4iXSwic291cmNlUm9vdCI6Ii9maWxlLWFzeW5jOjAuMS4xL3NwZWMifQ==

2

lib/spec/spec_helper.js

@@ -30,2 +30,2 @@ 'use strict';

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNwZWNfaGVscGVyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDOztBQUUzQixJQUFJLE9BQU8sR0FBRztBQUNaLFFBQU0sRUFBRyxPQUFPLENBQUMsY0FBYyxDQUFDLENBQUMsTUFBTTs7QUFFdkMsY0FBWSxFQUFBLHdCQUFhO3NDQUFULE9BQU87QUFBUCxhQUFPOzs7QUFDckIsV0FBTyxJQUFJLENBQUMsT0FBTyxNQUFBLENBQVosSUFBSSxHQUNULEdBQUcsRUFBRSxNQUFNLEVBQUUsVUFBVSxTQUFLLE9BQU8sRUFDcEMsQ0FBQztHQUNIOztBQUVELHNCQUFvQixFQUFBLGdDQUFhO3VDQUFULE9BQU87QUFBUCxhQUFPOzs7QUFDN0IsV0FBTyxJQUFJLENBQUMsT0FBTyxNQUFBLENBQVosSUFBSSxHQUNULEdBQUcsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLFVBQVUsU0F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BVSxTQUFLLE9BQU8sRUFDcEMsQ0FBQztHQUNIOztBQUVELHNCQUFvQixFQUFBLGdDQUFhO3VDQUFULE9BQU87QUFBUCxhQUFPOzs7QUFDN0IsV0FBTyxJQUFJLENBQUMsT0FBTyxNQUFBLENBQVosSUFBSSxHQUNULEdBQUcsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLFVBQVUsU0FBSyxPQUFPLEVBQzNDLENBQUM7R0FDSDtDQUNGLENBQUM7O3FCQUVhLE9BQU8iLCJmaWxlIjoic3BlY19oZWxwZXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgcGF0aCA9IHJlcXVpcmUoJ3BhdGgnKTtcblxudmFyIEhlbHBlcnMgPSB7XG4gIGV4cGVjdCA6IHJlcXVpcmUoJ2F6ay1kZXYvY2hhaScpLmV4cGVjdCxcblxuICBmaXh0dXJlX3BhdGgoLi4uZml4dHVyZSkge1xuICAgIHJldHVybiBwYXRoLnJlc29sdmUoXG4gICAgICAnLicsICdzcGVjJywgJ2ZpeHR1cmVzJywgLi4uZml4dHVyZVxuICAgICk7XG4gIH0sXG5cbiAgZml4dHVyZV9yZXF1aXJlX3BhdGgoLi4uZml4dHVyZSkge1xuICAgIHJldHVybiBwYXRoLnJlc29sdmUoXG4gICAgICAnLicsICdsaWInLCAnc3BlYycsICdmaXh0dXJlcycsIC4uLmZpeHR1cmVcbiAgICApO1xuICB9LFxufTtcblxuZXhwb3J0IGRlZmF1bHQgSGVscGVycztcbiJdLCJzb3VyY2VSb290IjoiL2ZpbGUtYXN5bmM6MC4xLjEvc3BlYyJ9

@@ -9,439 +9,38 @@ 'use strict';

var fs = require('fs-extra');
var extra = require('fs-extra');
_bluebird2['default'].promisifyAll(fs);
var final = {
existsCallback: extra.exists.bind(extra),
exists: function exists(full_path) {
var _this = this;
var FileAsync = {
/**
* stat :: fs.stat
* @param {string} full_path file's fullpath to get stat
* @return {object} fsStat stat functions: isFile, isDirectory, isBlockDevice, isCharacterDevice, isSymbolicLink, isFIFO, isSocket
*
* https://github.com/petkaantonov/bluebird/issues/5#issuecomment-25747355
*/
exists: function exists(full_path) {
return new _bluebird2['default'].Promise(function (resolve, reject) {
return fs.statAsync(full_path).then(function () {
return resolve(true);
})['catch'](function (err) {
if (err.code === 'ENOENT') {
return resolve(false);
}
return reject(err);
});
return new _bluebird2['default'].Promise(function (resolve) {
_this.existsCallback(full_path, resolve);
});
},
}
};
// other fs & fs-extra methods
appendFile: function appendFile() {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
var async_methods = [];
var async_object = _bluebird2['default'].promisifyAll(extra, {
// Skip .*Sync methods
filter: function filter(name, func, target, passesDefaultFilter) {
if (passesDefaultFilter && target === extra && !final[name]) {
if (name.match(/Sync$/)) {
final[name] = extra[name].bind(extra);
} else {
async_methods.push(name);
return true;
}
}
return fs.appendFileAsync.apply(fs, args);
},
chmod: function chmod() {
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
return fs.chmodAsync.apply(fs, args);
},
chown: function chown() {
for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
args[_key3] = arguments[_key3];
}
return fs.chownAsync.apply(fs, args);
},
close: function close() {
for (var _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
args[_key4] = arguments[_key4];
}
return fs.closeAsync.apply(fs, args);
},
copy: function copy() {
for (var _len5 = arguments.length, args = Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
args[_key5] = arguments[_key5];
}
return fs.copyAsync.apply(fs, args);
},
createFile: function createFile() {
for (var _len6 = arguments.length, args = Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
args[_key6] = arguments[_key6];
}
return fs.createFileAsync.apply(fs, args);
},
createReadStream: function createReadStream() {
for (var _len7 = arguments.length, args = Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
args[_key7] = arguments[_key7];
}
return fs.createReadStreamAsync.apply(fs, args);
},
createWriteStream: function createWriteStream() {
for (var _len8 = arguments.length, args = Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
args[_key8] = arguments[_key8];
}
return fs.createWriteStreamAsync.apply(fs, args);
},
'delete': function _delete() {
for (var _len9 = arguments.length, args = Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
args[_key9] = arguments[_key9];
}
return fs.deleteAsync.apply(fs, args);
},
ensureDir: function ensureDir() {
for (var _len10 = arguments.length, args = Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
args[_key10] = arguments[_key10];
}
return fs.ensureDirAsync.apply(fs, args);
},
ensureFile: function ensureFile() {
for (var _len11 = arguments.length, args = Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
args[_key11] = arguments[_key11];
}
return fs.ensureFileAsync.apply(fs, args);
},
fchmod: function fchmod() {
for (var _len12 = arguments.length, args = Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
args[_key12] = arguments[_key12];
}
return fs.fchmodAsync.apply(fs, args);
},
fchown: function fchown() {
for (var _len13 = arguments.length, args = Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
args[_key13] = arguments[_key13];
}
return fs.fchownAsync.apply(fs, args);
},
fdatasync: function fdatasync() {
for (var _len14 = arguments.length, args = Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
args[_key14] = arguments[_key14];
}
return fs.fdatasyncAsync.apply(fs, args);
},
fstat: function fstat() {
for (var _len15 = arguments.length, args = Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
args[_key15] = arguments[_key15];
}
return fs.fstatAsync.apply(fs, args);
},
fsync: function fsync() {
for (var _len16 = arguments.length, args = Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
args[_key16] = arguments[_key16];
}
return fs.fsyncAsync.apply(fs, args);
},
ftruncate: function ftruncate() {
for (var _len17 = arguments.length, args = Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
args[_key17] = arguments[_key17];
}
return fs.ftruncateAsync.apply(fs, args);
},
futimes: function futimes() {
for (var _len18 = arguments.length, args = Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
args[_key18] = arguments[_key18];
}
return fs.futimesAsync.apply(fs, args);
},
lchmod: function lchmod() {
for (var _len19 = arguments.length, args = Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {
args[_key19] = arguments[_key19];
}
return fs.lchmodAsync.apply(fs, args);
},
lchown: function lchown() {
for (var _len20 = arguments.length, args = Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {
args[_key20] = arguments[_key20];
}
return fs.lchownAsync.apply(fs, args);
},
link: function link() {
for (var _len21 = arguments.length, args = Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {
args[_key21] = arguments[_key21];
}
return fs.linkAsync.apply(fs, args);
},
lstat: function lstat() {
for (var _len22 = arguments.length, args = Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {
args[_key22] = arguments[_key22];
}
return fs.lstatAsync.apply(fs, args);
},
lutimes: function lutimes() {
for (var _len23 = arguments.length, args = Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
args[_key23] = arguments[_key23];
}
return fs.lutimesAsync.apply(fs, args);
},
mkdir: function mkdir() {
for (var _len24 = arguments.length, args = Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
args[_key24] = arguments[_key24];
}
return fs.mkdirAsync.apply(fs, args);
},
mkdirp: function mkdirp() {
for (var _len25 = arguments.length, args = Array(_len25), _key25 = 0; _key25 < _len25; _key25++) {
args[_key25] = arguments[_key25];
}
return fs.mkdirpAsync.apply(fs, args);
},
mkdirs: function mkdirs() {
for (var _len26 = arguments.length, args = Array(_len26), _key26 = 0; _key26 < _len26; _key26++) {
args[_key26] = arguments[_key26];
}
return fs.mkdirsAsync.apply(fs, args);
},
move: function move() {
for (var _len27 = arguments.length, args = Array(_len27), _key27 = 0; _key27 < _len27; _key27++) {
args[_key27] = arguments[_key27];
}
return fs.moveAsync.apply(fs, args);
},
open: function open() {
for (var _len28 = arguments.length, args = Array(_len28), _key28 = 0; _key28 < _len28; _key28++) {
args[_key28] = arguments[_key28];
}
return fs.openAsync.apply(fs, args);
},
outputFile: function outputFile() {
for (var _len29 = arguments.length, args = Array(_len29), _key29 = 0; _key29 < _len29; _key29++) {
args[_key29] = arguments[_key29];
}
return fs.outputFileAsync.apply(fs, args);
},
outputJson: function outputJson() {
for (var _len30 = arguments.length, args = Array(_len30), _key30 = 0; _key30 < _len30; _key30++) {
args[_key30] = arguments[_key30];
}
return fs.outputJsonAsync.apply(fs, args);
},
outputJSON: function outputJSON() {
for (var _len31 = arguments.length, args = Array(_len31), _key31 = 0; _key31 < _len31; _key31++) {
args[_key31] = arguments[_key31];
}
return fs.outputJSONAsync.apply(fs, args);
},
read: function read() {
for (var _len32 = arguments.length, args = Array(_len32), _key32 = 0; _key32 < _len32; _key32++) {
args[_key32] = arguments[_key32];
}
return fs.readAsync.apply(fs, args);
},
readdir: function readdir() {
for (var _len33 = arguments.length, args = Array(_len33), _key33 = 0; _key33 < _len33; _key33++) {
args[_key33] = arguments[_key33];
}
return fs.readdirAsync.apply(fs, args);
},
readFile: function readFile() {
for (var _len34 = arguments.length, args = Array(_len34), _key34 = 0; _key34 < _len34; _key34++) {
args[_key34] = arguments[_key34];
}
return fs.readFileAsync.apply(fs, args);
},
readJson: function readJson() {
for (var _len35 = arguments.length, args = Array(_len35), _key35 = 0; _key35 < _len35; _key35++) {
args[_key35] = arguments[_key35];
}
return fs.readJsonAsync.apply(fs, args);
},
readJSON: function readJSON() {
for (var _len36 = arguments.length, args = Array(_len36), _key36 = 0; _key36 < _len36; _key36++) {
args[_key36] = arguments[_key36];
}
return fs.readJSONAsync.apply(fs, args);
},
readJsonFile: function readJsonFile() {
for (var _len37 = arguments.length, args = Array(_len37), _key37 = 0; _key37 < _len37; _key37++) {
args[_key37] = arguments[_key37];
}
return fs.readJsonFileAsync.apply(fs, args);
},
readJSONFile: function readJSONFile() {
for (var _len38 = arguments.length, args = Array(_len38), _key38 = 0; _key38 < _len38; _key38++) {
args[_key38] = arguments[_key38];
}
return fs.readJSONFileAsync.apply(fs, args);
},
readlink: function readlink() {
for (var _len39 = arguments.length, args = Array(_len39), _key39 = 0; _key39 < _len39; _key39++) {
args[_key39] = arguments[_key39];
}
return fs.readlinkAsync.apply(fs, args);
},
realpath: function realpath() {
for (var _len40 = arguments.length, args = Array(_len40), _key40 = 0; _key40 < _len40; _key40++) {
args[_key40] = arguments[_key40];
}
return fs.realpathAsync.apply(fs, args);
},
remove: function remove() {
for (var _len41 = arguments.length, args = Array(_len41), _key41 = 0; _key41 < _len41; _key41++) {
args[_key41] = arguments[_key41];
}
return fs.removeAsync.apply(fs, args);
},
rename: function rename() {
for (var _len42 = arguments.length, args = Array(_len42), _key42 = 0; _key42 < _len42; _key42++) {
args[_key42] = arguments[_key42];
}
return fs.renameAsync.apply(fs, args);
},
rmdir: function rmdir() {
for (var _len43 = arguments.length, args = Array(_len43), _key43 = 0; _key43 < _len43; _key43++) {
args[_key43] = arguments[_key43];
}
return fs.rmdirAsync.apply(fs, args);
},
stat: function stat() {
for (var _len44 = arguments.length, args = Array(_len44), _key44 = 0; _key44 < _len44; _key44++) {
args[_key44] = arguments[_key44];
}
return fs.statAsync.apply(fs, args);
},
symlink: function symlink() {
for (var _len45 = arguments.length, args = Array(_len45), _key45 = 0; _key45 < _len45; _key45++) {
args[_key45] = arguments[_key45];
}
return fs.symlinkAsync.apply(fs, args);
},
touch: function touch() {
for (var _len46 = arguments.length, args = Array(_len46), _key46 = 0; _key46 < _len46; _key46++) {
args[_key46] = arguments[_key46];
}
return fs.touchAsync.apply(fs, args);
},
truncate: function truncate() {
for (var _len47 = arguments.length, args = Array(_len47), _key47 = 0; _key47 < _len47; _key47++) {
args[_key47] = arguments[_key47];
}
return fs.truncateAsync.apply(fs, args);
},
unlink: function unlink() {
for (var _len48 = arguments.length, args = Array(_len48), _key48 = 0; _key48 < _len48; _key48++) {
args[_key48] = arguments[_key48];
}
return fs.unlinkAsync.apply(fs, args);
},
unwatchFile: function unwatchFile() {
for (var _len49 = arguments.length, args = Array(_len49), _key49 = 0; _key49 < _len49; _key49++) {
args[_key49] = arguments[_key49];
}
return fs.unwatchFileAsync.apply(fs, args);
},
utimes: function utimes() {
for (var _len50 = arguments.length, args = Array(_len50), _key50 = 0; _key50 < _len50; _key50++) {
args[_key50] = arguments[_key50];
}
return fs.utimesAsync.apply(fs, args);
},
watch: function watch() {
for (var _len51 = arguments.length, args = Array(_len51), _key51 = 0; _key51 < _len51; _key51++) {
args[_key51] = arguments[_key51];
}
return fs.watchAsync.apply(fs, args);
},
watchFile: function watchFile() {
for (var _len52 = arguments.length, args = Array(_len52), _key52 = 0; _key52 < _len52; _key52++) {
args[_key52] = arguments[_key52];
}
return fs.watchFileAsync.apply(fs, args);
},
write: function write() {
for (var _len53 = arguments.length, args = Array(_len53), _key53 = 0; _key53 < _len53; _key53++) {
args[_key53] = arguments[_key53];
}
return fs.writeAsync.apply(fs, args);
},
writeFile: function writeFile() {
for (var _len54 = arguments.length, args = Array(_len54), _key54 = 0; _key54 < _len54; _key54++) {
args[_key54] = arguments[_key54];
}
return fs.writeFileAsync.apply(fs, args);
},
writeJson: function writeJson() {
for (var _len55 = arguments.length, args = Array(_len55), _key55 = 0; _key55 < _len55; _key55++) {
args[_key55] = arguments[_key55];
}
return fs.writeJsonAsync.apply(fs, args);
},
writeJSON: function writeJSON() {
for (var _len56 = arguments.length, args = Array(_len56), _key56 = 0; _key56 < _len56; _key56++) {
args[_key56] = arguments[_key56];
}
return fs.writeJSONAsync.apply(fs, args);
},
writeJsonFile: function writeJsonFile() {
for (var _len57 = arguments.length, args = Array(_len57), _key57 = 0; _key57 < _len57; _key57++) {
args[_key57] = arguments[_key57];
}
return fs.writeJsonFileAsync.apply(fs, args);
},
writeJSONFile: function writeJSONFile() {
for (var _len58 = arguments.length, args = Array(_len58), _key58 = 0; _key58 < _len58; _key58++) {
args[_key58] = arguments[_key58];
}
return fs.writeJSONFileAsync.apply(fs, args);
return false;
}
});
};
// Rename .*Async methods
async_methods.forEach(function (method) {
final[method + 'Callback'] = extra[method];
final[method] = async_object[method + 'Async'].bind(async_object);
});
module.exports = FileAsync;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpbGUtYXN5bmMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozt3QkFBZSxVQUFVOzs7O0FBQ3pCLElBQUksRUFBRSxHQUFHLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQzs7QUFFN0Isc0JBQUcsWUFBWSxDQUFDLEVBQUUsQ0FBQyxDQUFDOztBQUVwQixJQUFJLFNBQVMsR0FBRzs7Ozs7Ozs7O0FBU2QsUUFBTSxFQUFFLGdCQUFVLFNBQVMsRUFBRTtBQUMzQixXQUFPLElBQUksc0JBQUcsT0FBTyxDQUFDLFVBQVUsT0FBTyxFQUFFLE1BQU0sRUFBRTtBQUMvQyxhQUFPLEVBQUUsQ0FBQyxTQUFTLENBQUMsU0FBUyxDQUFDLENBQUMsSUFBSSxDQUFDLFlBQVk7QUFDOUMsZUFBTyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUM7T0FDdEIsQ0FBQyxTQUNJLENBQUMsVUFBVSxHQUFHLEVBQUU7QUFDcEIsWUFBSSxHQUFHLENBQUMsSUFBSSxLQUFLLFFBQVEsRUFBRTtBQUN6QixpQkFBTyxPQUFPLENBQUMsS0FBSyxDQUFDLENBQUM7U0FDdkI7QUFDRCxlQUFPLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztPQUNwQixDQUFDLENBQUM7S0FDSixDQUFDLENBQUM7R0FDSjs7O0FBR0QsWUFBVSxFQUFTLHNCQUFhO3NDQUFULElBQUk7QUFBSixVQUFJOzs7QUFBTyxXQUFPLEVBQUUsQ0FBQyxlQUFlLE1BQUEsQ0FBbEIsRUFBRSxFQUFvQixJQUFJLENBQUMsQ0FBQztHQ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ncyk7IH0sXG4gIGxpbms6ICAgICAgICAgICAgICAoLi4uYXJncykgPT4geyByZXR1cm4gZnMubGlua0FzeW5jKC4uLmFyZ3MpOyB9LFxuICBsc3RhdDogICAgICAgICAgICAgKC4uLmFyZ3MpID0+IHsgcmV0dXJuIGZzLmxzdGF0QXN5bmMoLi4uYXJncyk7IH0sXG4gIGx1dGltZXM6ICAgICAgICAgICAoLi4uYXJncykgPT4geyByZXR1cm4gZnMubHV0aW1lc0FzeW5jKC4uLmFyZ3MpOyB9LFxuICBta2RpcjogICAgICAgICAgICAgKC4uLmFyZ3MpID0+IHsgcmV0dXJuIGZzLm1rZGlyQXN5bmMoLi4uYXJncyk7IH0sXG4gIG1rZGlycDogICAgICAgICAgICAoLi4uYXJncykgPT4geyByZXR1cm4gZnMubWtkaXJwQXN5bmMoLi4uYXJncyk7IH0sXG4gIG1rZGlyczogICAgICAgICAgICAoLi4uYXJncykgPT4geyByZXR1cm4gZnMubWtkaXJzQXN5bmMoLi4uYXJncyk7IH0sXG4gIG1vdmU6ICAgICAgICAgICAgICAoLi4uYXJncykgPT4geyByZXR1cm4gZnMubW92ZUFzeW5jKC4uLmFyZ3MpOyB9LFxuICBvcGVuOiAgICAgICAgICAgICAgKC4uLmFyZ3MpID0+IHsgcmV0dXJuIGZzLm9wZW5Bc3luYyguLi5hcmdzKTsgfSxcbiAgb3V0cHV0RmlsZTogICAgICAgICguLi5hcmdzKSA9PiB7IHJldHVybiBmcy5vdXRwdXRGaWxlQXN5bmMoLi4uYXJncyk7IH0sXG4gIG91dHB1dEpzb246ICAgICAgICAoLi4uYXJncykgPT4geyByZXR1cm4gZnMub3V0cHV0SnNvbkFzeW5jKC4uLmFyZ3MpOyB9LFxuICBvdXRwdXRKU09OOiAgICAgICAgKC4uLmFyZ3MpID0+IHsgcmV0dXJuIGZzLm91dHB1dEpTT05Bc3luYyguLi5hcmdzKTsgfSxcbiAgcmVhZDogICAgICAgICAgICAgICguLi5hcmdzKSA9PiB7IHJldHV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nRzID0gZmluYWw7XG4iXSwic291cmNlUm9vdCI6Ii9maWxlLWFzeW5jOjAuMS4xL3NyYyJ9
{
"name": "file-async",
"version": "0.1.1",
"version": "0.1.2",
"description": "fs-extra + bluebird promisify",

@@ -5,0 +5,0 @@ "main": "index.js",

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