{"_id":"download-file-sync","_rev":"8-4a19a70cabfe8f6f23230aa78f3c3d0e","name":"download-file-sync","description":"Does exactly what you expects","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"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":"https://registry.npmjs.org/download-file-sync/-/download-file-sync-1.0.0.tgz","integrity":"sha512-qL9aaw2eglMn02b4sBHuJMcu32ppCXqCVm2CoXGb9V2d4OhtCPOK4/7Q7O4AEEYj3dQ/qOieBZIxV4aJUUv5Qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICzhmc+LU7rEGICpImsSGxwIzoVTuaau1sXE4ZFby2wnAiEAo0kTMOL9yS3ayw7oeEJbZA+g2toyJT2qbhr2YoVdPkY="}]}},"1.0.1":{"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":"https://registry.npmjs.org/download-file-sync/-/download-file-sync-1.0.1.tgz","integrity":"sha512-+LGztGXbwKyjIUS+Cy8uWwDmn+pERfBdeYKnwxGCG8wyFv7UuWHUPwDGRs6VS2SLtYmj85swPljv/Yd4e2atKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFmYj0DrE03AAobLuA3qmIArO0ksq0LoXXldhH0xgCLZAiBABwsUgnIfhYwFsJDut2lqRPlmcsMKWYGQjiyBxdJ+pw=="}]}},"1.0.2":{"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":"https://registry.npmjs.org/download-file-sync/-/download-file-sync-1.0.2.tgz","integrity":"sha512-NjaK6xJm31FixnoZ8T6NT7UFpUrqIMO129E/Oa5vikFDWz/0uGCZhRUnyKLXUf/2tKNJhvESD8U1eJGg8tap1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDT6v9nJqiccFn0fd34WReshjvdpykuYw0n0XaB9Y/MUAiBN56sPXHaU7CTVp3nKVtSEZMlKGETFYmfgRqMKefofpg=="}]}},"1.0.3":{"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":"https://registry.npmjs.org/download-file-sync/-/download-file-sync-1.0.3.tgz","integrity":"sha512-x1c1su66rfiRdO1trXGjG4CJGrxsGadBQutKqsYVUqVFkB8PJwVMtU0h+dUI/VkpovrsgczdWcE5NVmg9m+lcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/CaHhQ+AfoHDMxmoz8lp9HxAKMBVEgg/cwDIR/49fKgIgP1TrOzWOJvwTo56cssoyCrPIXoVQ3Vl1Tj3rVK613uo="}]}},"1.0.4":{"name":"download-file-sync","version":"1.0.4","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":"25d450b73852d8854a4569c4675833a9a33c516e","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.4","scripts":{},"_shasum":"d3e3c543f836f41039455b9034c72e355b036019","_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":"d3e3c543f836f41039455b9034c72e355b036019","tarball":"https://registry.npmjs.org/download-file-sync/-/download-file-sync-1.0.4.tgz","integrity":"sha512-vH92qNH508jZZA12HQNq/aiMDfagr4JvjFiI17Bi8oYjsxwv5ZVIi7iHkYmUXxOQUr90tcVX+8EPePjAqG1Y0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2K74dfhmScarK0Kyz/KDjlYElY/y/NDQTkpxHENhpuwIgGmML71K1Ao2pNwBt1dVclmmVNjwfaNKJUtQDMu0KQTM="}]}}},"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","maintainers":[{"name":"vjeux","email":"vjeuxx@gmail.com"}],"time":{"modified":"2022-06-15T22:58:22.988Z","created":"2015-11-07T04:19:48.788Z","1.0.0":"2015-11-07T04:19:48.788Z","1.0.1":"2015-11-07T04:30:34.641Z","1.0.2":"2015-11-07T16:47:17.721Z","1.0.3":"2015-11-07T18:46:29.341Z","1.0.4":"2015-11-21T17:57:21.821Z"},"author":{"name":"vjeux"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/vjeux/download-file-sync#readme","repository":{"type":"git","url":"git+ssh://git@github.com/vjeux/download-file-sync.git"},"bugs":{"url":"https://github.com/vjeux/download-file-sync/issues"},"users":{"ahsanshafiq":true}}