siwi-file
file download for nodejs
install
use npm
npm install siwi-file
use yarn
yarn add siwi-file
Example
code example download nodejs pkg
async { const path = const file = const url = 'https://nodejs.org/dist/v11.11.0/node-v11.11.0.pkg' const savepath = path try await console; catch error console }
run node test.js
node test.js
Test
npm test
const expect = expect;