{"name":"download-file-sync","version":"1.0.0","description":"Does exactly what you expects","main":"index.js","author":{"name":"vjeux"},"license":"MIT","_id":"download-file-sync@1.0.0","scripts":{},"_shasum":"9444c1e0ea4986f406e334cf0fbd5a365aa9e0a7","_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":"9444c1e0ea4986f406e334cf0fbd5a365aa9e0a7","tarball":"http://registry-npm.ywwl.com/download-file-sync/download/download-file-sync-1.0.0.tgz","integrity":"sha512-qL9aaw2eglMn02b4sBHuJMcu32ppCXqCVm2CoXGb9V2d4OhtCPOK4/7Q7O4AEEYj3dQ/qOieBZIxV4aJUUv5Qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICzhmc+LU7rEGICpImsSGxwIzoVTuaau1sXE4ZFby2wnAiEAo0kTMOL9yS3ayw7oeEJbZA+g2toyJT2qbhr2YoVdPkY="}],"size":378,"noattachment":false,"key":"/download-file-sync/-/download-file-sync-1.0.0.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":1446869988788,"_cnpm_publish_time":1446869988788,"dist-tags":{"latest":"1.0.4"}}