Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 713 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 713 Bytes

Downloader

Just a simple NPM package to download things off the internet

Table Of Contents

Installation

    npm install node-downloader.js

Example

    const { Downloader } = require('node-downloader.js');

    (() => {
        const options = {
            path: './downloads/',
            debug: true
        };
        const dl = new Downloader(options);

        
        const url = 'https://github.githubassets.com/images/icons/emoji/trollface.png';
        const file_name = 'photo.png';
        const path = './data/';
        const opts = {};

        dl.Download(url, file_name, opts, path);
    })();