johackim/rdcli

View on GitHub
src/download.js

Summary

Maintainability
A
1 hr
Test Coverage

Function download has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function download(link, callback) {
    log(`download file ${link}`);
    const filename = unescape(url.parse(link).pathname.split('/').pop());
    const file = `${process.cwd()}/${filename}`;

Severity: Minor
Found in src/download.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status