@julian_cataldo/astro-licenses-report

    0.14.2 • Public • Published

    🚀  Astro — Packages licenses report generator

    Give credits to the awesome JS open-source community with this component.
    It will generate a table with important informations about packages used by your project.

    Uses Sebastian Roming' license-report-generator under the hood (see @wbmnky/license-report-generator).

    📦  Installation

    pnpm i @julian_cataldo/astro-licenses-report

    🛠  Usage

    ---
    import LicensesReport from '@julian_cataldo/astro-licenses-report/LicensesReport.astro';
    // ...
    ---
    <!-- ... -->
    <body>
      <!-- Place component inside `BODY` tag -->
    
      <!-- All properties are optional -->
      <LicensesReport
        useDevDependencies={true}
        depth={2}
        nameText={'Nom'}
        authorText={'Auteur'}
        licenseText={'License'}
        linkText={'URL'}
      />
    
      <!-- ... -->
    </body>

    🎉  Result

    <table class="licenses-report">
      <thead class="table-header">
        <tr class="row">
          <th class="header name">Package</th>
          <th class="header author">Author</th>
          <th class="header license">License</th>
          <th class="header link">URL</th>
        </tr>
      </thead>
    
      <tbody class="table-body">
        <tr class="row">
          <td class="column name">@astrojs/compiler</td>
    
          <td class="column author">withastro</td>
    
          <td class="column license">MIT</td>
    
          <td class="column link">
            <a
              class="link is-external"
              href="https://astro.build"
              target="_blank"
              rel="noopener nofollow"
            >
              https://astro.build
            </a>
          </td>
        </tr>
    
        <!-- ... -->
      </tbody>
    </table>

    Install

    npm i @julian_cataldo/astro-licenses-report

    DownloadsWeekly Downloads

    83

    Version

    0.14.2

    License

    ISC

    Unpacked Size

    13.6 kB

    Total Files

    7

    Last publish

    Collaborators

    • julian.cataldo