New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fabernovel/heart-greenit

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fabernovel/heart-greenit

Analysis module of Heart, which analyses URLs with GreenIT

  • 3.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-69.23%
Maintainers
5
Weekly downloads
 
Created
Source

Heart GreenIT

Heart GreenIT is an analysis module of Heart, which analyses URLs with GreenIT.

Read more about the purpose, design and general installation of Heart.

Package manager

In the following sections, every examples are using NPM as package manager, but you can use any other you prefer: Yarn, pnpm...

Installation

  1. Add the package to your project:

    npm install @fabernovel/heart-greenit
    
  2. Add Heart CLI if you have not already installed it

    npm install @fabernovel/heart-cli
    

Usage

Analysis setup

The analysis setup must use the JSON format with the following keys:

{
    "url": "https://www.fabernovel.com/",
    // optional - default: 3000
    "timeout": 1000,
    // optional - default: 2
    "retry": 2,
    // optional - default: "desktop"
    // possible values: "desktop", "galaxyS9", "galaxyS20", "iPhone8", "iPhone8Plus", "iPhoneX", "iPad"
    "device": "mobile"
}

Example

Using Heart CLI

You want to analyse the https://www.fabernovel.com URL and check that the rating is at least 90

npx heart greenit --inline '{"url":"https://www.fabernovel.com"}' --threshold 90

Disclaimer

The LCA values used by GreenIT to evaluate environmental impacts are not under free license - © Frédéric Bordage

Please also refer to the mentions provided in the code files for specifics on the IP regime.

Keywords

FAQs

Package last updated on 14 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc