promised-file
Advanced tools
Comparing version
{ | ||
"name": "promised-file", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Super simple file reader, wrapped in a promise.", | ||
@@ -5,0 +5,0 @@ "main": "bin/promised-file.js", |
@@ -14,3 +14,3 @@ promised-file | ||
Create a tiny wrapper around `fs` that returns a promise | ||
Create a tiny wrapper around `fs.readFile()` that returns a promise | ||
@@ -29,13 +29,13 @@ ### Install | ||
npm i promised-file | ||
npm i promised-file | ||
# run it from your node_modules/ directory : | ||
# On an non-empty file. | ||
# On an non-empty file. | ||
./node_modules/.bin/promised-file package.* # Notice the glob pattern for package.json. | ||
#On an empty file. | ||
#On an empty file. | ||
touch empty.txt # Create the empty file. | ||
./node_modules/.bin/promised-file empty* | ||
# Logs to the console: | ||
./node_modules/.bin/promised-file empty* | ||
# Logs to the console: | ||
# | ||
@@ -53,3 +53,3 @@ # ### Error: | ||
// ... | ||
beforeEach(function () { | ||
@@ -79,3 +79,3 @@ notemptyfile = __dirname + '/fixtures/notemptyfile.js'; | ||
}); | ||
// ... | ||
@@ -82,0 +82,0 @@ |