![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
node-save-file
Advanced tools
Download and extract files
Fork from https://github.com/kevva/download, changed the output data.
See download-cli for the command-line version.
$ npm install node-save-file
const fs = require('fs');
const download = require('node-save-file');
(async () => {
await download('http://unicorn.com/foo.jpg', 'dist');
fs.writeFileSync('dist/foo.jpg', await download('http://unicorn.com/foo.jpg'));
download('unicorn.com/foo.jpg').pipe(fs.createWriteStream('dist/foo.jpg'));
await Promise.all([
'unicorn.com/foo.jpg',
'cats.com/dancing.gif'
].map(url => download(url, 'dist')));
})();
To work with proxies, read the got documentation
.
Returns both a Promise<{data:Buffer,fielpath:string}>
and a Duplex stream with additional events.
Type: string
URL to download.
Type: string
Path to where your file will be written.
Type: Object
Same options as got
and decompress
in addition to the ones below.
Type: boolean
Default: false
If set to true
, try extracting the file using decompress
.
Type: string
Name of the saved file.
FAQs
Download save and extract files
The npm package node-save-file receives a total of 1 weekly downloads. As such, node-save-file popularity was classified as not popular.
We found that node-save-file demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.