Socket
Socket
Sign inDemoInstall

async-get-file

Package Overview
Dependencies
5
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "async-get-file",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

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

@@ -1,7 +0,20 @@

# Download files with Promise (node.js)
# async-get-file - Download files with Promise (node.js)
[![npm version](https://badge.fury.io/js/async-get-file.svg)](https://badge.fury.io/js/async-get-file)
A wrapper around download-file package to make it return a promise.
This package is a wrapper around the [download-file](https://www.npmjs.com/package/download-file) package replacing callback functions with functions that return a Promise.
Basically it lets you write code like this
```javascript
await get(url,options);
console.log("Success");
```
instead of
```javascript
get(url, options, err => {
if (err) throw err;
console.log("Success");
})
```
## Installation

@@ -8,0 +21,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc