New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

promised-file

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promised-file - npm Package Compare versions

Comparing version

to
1.0.2

2

package.json
{
"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 @@