Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vjeux/download-file-sync

Does exactly what you expect
https://github.com/vjeux/download-file-sync

Last synced: about 1 month ago
JSON representation

Does exactly what you expect

Awesome Lists containing this project

README

        

# download-file-sync

Ever wanted to write a node script that just downloads a file synchronously? I'm sure you sometimes wish you worked on PHP and just used `file_get_contents('url')`. Yeah it's going to be slow, yeah it won't scale, but that doesn't matter for your little script.

## How to use?

```
npm install download-file-sync --save
```

```javascript
var downloadFileSync = require('download-file-sync');
var content = downloadFileSync('https://github.com/vjeux/download-file-sync');
// '