Giter Club home page Giter Club logo

report's People

Contributors

allcontributors[bot] avatar antoine-coulon avatar davidbouscarle avatar dependabot[bot] avatar fabnguess avatar fraxken avatar greenkeeper[bot] avatar halcin avatar kawacrepe avatar max2810 avatar pierredemailly avatar rossb0b avatar snyk-bot avatar step-security-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

report's Issues

PDF report transform the NPM link into mailto

Reproduction

Create or update .nodesecurerc with this content:

{
  "version": "1.0.0",
  "i18n": "english",
  "strategy": "npm",
  "report": {
    "npm": {
      "organizationPrefix": "@topcli",
      "packages": [
        "prompts",
        "spinner"
      ]
    },
    "git": {
      "organizationUrl": "https://github.com/TopCli",
      "repositories": []
    },
    "theme": "light",
    "includeTransitiveInternal": false,
    "reporters": [
      "html",
      "pdf"
    ],
    "charts": [
      {
        "name": "Extensions",
        "display": true,
        "interpolation": "d3.interpolateRainbow",
        "type": "bar"
      },
      {
        "name": "Licenses",
        "display": true,
        "interpolation": "d3.interpolateCool",
        "type": "bar"
      },
      {
        "name": "Warnings",
        "display": true,
        "type": "horizontalBar",
        "interpolation": "d3.interpolateInferno"
      },
      {
        "name": "Flags",
        "display": true,
        "type": "horizontalBar",
        "interpolation": "d3.interpolateSinebow"
      }
    ],
    "title": "Default report title",
    "logoUrl": "https://avatars0.githubusercontent.com/u/29552883?s=200&v=4"
  }
}

Run node . execute.

It will generate 2 files:

  • /reports/Default report title.html
  • /reports/Default report title.pdf

Open both files and go to Transitive Dependencies
image

Click on [email protected].

The HTML report open a new tab to https://www.npmjs.com/package/[email protected] (don't take care to the 404)
The PDF report try to send a mail.

image

Expected Behavior

The PDF report open https://www.npmjs.com/package/[email protected] like the HTML one.

Fixing puppeteer HTML to PDF conversion

Hello 👋

With current version of puppeteer the PDF generation seems to be broken (There is probably parameters to review and maybe also CSS print rules to refactor?)

image

Création d'une CLI

Pour le moment le projet est utilisable par le biais d'une unique configuration et par l'exécution du fichier racine index.js. Il pourrait néanmoins intéressant de construire une CLI pour pouvoir mettre en place plusieurs commandes:

  • exécution de la génération pour une config spécifique
  • initialisation d'une nouvelle configuration (avec plusieurs questions pour nous guider).
  • envoi par mail d'un résultat

Cela peut être fait avec Sade et s'inspirer du CLI de NodeSecure.

Dans un premier temps l'objectif serait uniquement de réimplémenter l'exécution (les autres commandes seront intégrer dans d'autres contributions/PR).

Ideas to improve HTML & PDF reports

Hello 👋

There is a lot of room to improve that project, however it kinda hard to make definitive issues about things to improve (since it highly depend on UI ideas ..).

Here some of my ideas:

Improving Authors & Maintainers section

Current section doesn't bring much values (has we only see some avatars in the PDF). I think a list would be better here (with maybe a podium with the top 3 maintainers?).

image

Having list of impacted files and packages for others graphics

Most graphics allow to get a global overview of the situation. However it could be cool to allow the user to configure in RC if he want to be alerted of few things, for example:

  • Please show me the list of files (and packages) with extension .exe
  • Please show me the packages with warnings obfuscated-code or shady-link

Add missing metrics from Scanner payload

  • Number of minified files (overall / by packages)
  • Missing dependencies
  • Vulnerabilities

test: add UI tests

Aiming to gain confidence when maintaining the project.

I'd like to have UI tests here ^^

Script exit with code 1

The script exit with a code 1 but there is no specific errors (and everything work as expected).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.