{"name":"download-file-sync","version":"1.0.1","description":"Does exactly what you expects","main":"index.js","files":["index.js","README.md"],"author":{"name":"vjeux"},"license":"MIT","gitHead":"2bea8c5678d935c137a48d4fa980e2f305c592b8","_id":"download-file-sync@1.0.1","scripts":{},"_shasum":"6a8e930c23f562cb6841972bba8ed3b5ea9e0899","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.2","_npmUser":{"name":"vjeux","email":"vjeuxx@gmail.com"},"maintainers":[{"name":"vjeux","email":"vjeuxx@gmail.com"}],"dist":{"shasum":"6a8e930c23f562cb6841972bba8ed3b5ea9e0899","tarball":"http://registry-npm.ywwl.com/download-file-sync/download/download-file-sync-1.0.1.tgz","integrity":"sha512-+LGztGXbwKyjIUS+Cy8uWwDmn+pERfBdeYKnwxGCG8wyFv7UuWHUPwDGRs6VS2SLtYmj85swPljv/Yd4e2atKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFmYj0DrE03AAobLuA3qmIArO0ksq0LoXXldhH0xgCLZAiBABwsUgnIfhYwFsJDut2lqRPlmcsMKWYGQjiyBxdJ+pw=="}],"size":1499,"noattachment":false,"key":"/download-file-sync/-/download-file-sync-1.0.1.tgz"},"readme":"# download-file-sync\n\nEver 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.\n\n## How to use?\n\n```\nnpm install download-file-sync --save\n```\n\n```javascript\nvar downloadFileSync = require('download-file-sync');\nvar content = downloadFileSync('https://github.com/vjeux/download-file-sync');\n// '<!DOCTYPE html><html lang=\"en\"...'\n```\n\nThat's it, now you can get back to writing awesome prototypes ;)\n\n## How does it work\n\nHere's the full implementation:\n\n```javascript\nmodule.exports = function(url) {\n  return require('child_process')\n    .execFileSync('curl', ['--silent', '-L', url], {encoding: 'utf8'});\n}\n```\n\nAs you can imagine, this is not web scale, but it works!\n","publish_time":1446870634641,"_cnpm_publish_time":1446870634641,"dist-tags":{"latest":"1.0.4"}}