Comparing version 0.1.0 to 0.1.1
@@ -9,3 +9,3 @@ /** | ||
* | ||
* @version 0.1.0 | ||
* @version 0.1.1 | ||
*/ | ||
@@ -108,3 +108,9 @@ | ||
*/ | ||
exists : promisify(fs.exists), | ||
exists : function(path) { | ||
var promise = Vow.promise(); | ||
fs.exists(path, function(exists) { | ||
promise.fulfill(exists); | ||
}); | ||
return promise; | ||
}, | ||
@@ -111,0 +117,0 @@ /** |
{ | ||
"name" : "vow-fs", | ||
"version" : "0.1.0", | ||
"version" : "0.1.1", | ||
"description" : "File I/O by Vow", | ||
@@ -5,0 +5,0 @@ "homepage" : "https://github.com/dfilatov/vow-fs", |
10
test.js
@@ -1,5 +0,7 @@ | ||
var fs = require('./lib/fs'); | ||
var fs = require('./lib/fs'), | ||
path = require('path'); | ||
fs.isFile('package.json').then(function(isFile) { | ||
console.log(isFile); | ||
}); | ||
fs.exists(path.dirname(path.resolve('/a/b'))).then(function(ex) { | ||
console.log(ex); | ||
}) | ||
6870
191