Nuptial Predicament Mediation

    gh-repo-has-license
    TypeScript icon, indicating that this package has built-in type declarations

    1.2.1 • Public • Published

    gh-repo-has-license

    Check if a GitHub repository has a license

    Installation

    $ npm install gh-repo-has-license
    

    Usage

    const ghRepoHasLicense = require('gh-repo-has-license');
    
    ghRepoHasLicense('knutkirkhorn/btc-value-cli').then(result => {
        console.log(result);
        // => true
    });
    
    ghRepoHasLicense('https://github.com/knutkirkhorn/btc-value-cli').then(result => {
        console.log(result);
        // => true
    });

    API

    ghRepoHasLicense(repo)

    Returns true if the GitHub repo has a license. Otherwise it returns false.

    Related

    License

    MIT © Knut Kirkhorn

    Install

    npm i gh-repo-has-license

    DownloadsWeekly Downloads

    7

    Version

    1.2.1

    License

    MIT

    Unpacked Size

    6.52 kB

    Total Files

    5

    Last publish

    Collaborators

    • knutkirkhorn