async-get-file
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"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 @@ |
3988
81