{"name":"download-file-sync","version":"1.0.2","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":"74d360cbf8868355b01a8d5e17c3f699a8155ae0","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.2","scripts":{},"_shasum":"cbcbcb78069d595ad3a8823485ee144b2c9b8e34","_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":"cbcbcb78069d595ad3a8823485ee144b2c9b8e34","tarball":"http://registry-npm.ywwl.com/download-file-sync/download/download-file-sync-1.0.2.tgz","integrity":"sha512-NjaK6xJm31FixnoZ8T6NT7UFpUrqIMO129E/Oa5vikFDWz/0uGCZhRUnyKLXUf/2tKNJhvESD8U1eJGg8tap1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDT6v9nJqiccFn0fd34WReshjvdpykuYw0n0XaB9Y/MUAiBN56sPXHaU7CTVp3nKVtSEZMlKGETFYmfgRqMKefofpg=="}],"size":1496,"noattachment":false,"key":"/download-file-sync/-/download-file-sync-1.0.2.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":1446914837721,"_cnpm_publish_time":1446914837721,"dist-tags":{"latest":"1.0.4"}}