{"name":"download-file-sync","version":"1.0.3","description":"Does exactly what you expects","repository":{"type":"git","url":"git+ssh://git@github.com/vjeux/download-file-sync.git"},"files":["index.js","README.md"],"main":"index.js","author":{"name":"vjeux"},"license":"MIT","gitHead":"346a770e4089a10bb384f3c1711df31c9c698855","bugs":{"url":"https://github.com/vjeux/download-file-sync/issues"},"homepage":"https://github.com/vjeux/download-file-sync#readme","_id":"download-file-sync@1.0.3","scripts":{},"_shasum":"e252ef3fb353e9e429fea81edba39b7e848316ad","_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":"e252ef3fb353e9e429fea81edba39b7e848316ad","tarball":"http://registry-npm.ywwl.com/download-file-sync/download/download-file-sync-1.0.3.tgz","integrity":"sha512-x1c1su66rfiRdO1trXGjG4CJGrxsGadBQutKqsYVUqVFkB8PJwVMtU0h+dUI/VkpovrsgczdWcE5NVmg9m+lcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/CaHhQ+AfoHDMxmoz8lp9HxAKMBVEgg/cwDIR/49fKgIgP1TrOzWOJvwTo56cssoyCrPIXoVQ3Vl1Tj3rVK613uo="}],"size":1502,"noattachment":false,"key":"/download-file-sync/-/download-file-sync-1.0.3.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":1446921989341,"_cnpm_publish_time":1446921989341,"dist-tags":{"latest":"1.0.4"}}