Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/vjeux/download-file-sync
- Owner: vjeux
- License: mit
- Created: 2015-11-07T04:16:41.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-10-09T04:02:16.000Z (about 5 years ago)
- Last Synced: 2024-11-10T13:21:12.084Z (about 2 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 19
- Watchers: 3
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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');
// '