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

@fabernovel/heart-cli

Package Overview
Dependencies
Maintainers
5
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fabernovel/heart-cli

Runner module of Heart, which starts an analysis by using a CLI

  • 3.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
5
Weekly downloads
 
Created
Source

Heart CLI

Heart CLI is the control module of Heart. It allows every other module to work together, and is able to control the Heart API and the analysis modules. All of that by exposing a small CLI.

Note that you must install an analysis module too, to have a minimum viable installation of Heart.

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-cli
  1. Add an analysis module

Usage

General

npx heart --help

This command displays the list of commands you can use, regarding your installed modules.

If you install Heart API or each time you install an analysis module, a new command will be available.

Example

We assume that the analysis module Heart Observatory is installed.

If you want to start an analysis, you can use one of the following options:

  • npx heart observatory --inline '{"host": "heart.fabernovel.com"}'
    

    Or:

  • npx heart observatory --file observatory.json
    

    With the following content for the observatory.json file:

    {
      "host": "heart.fabernovel.com"
    }
    

You can also provide a minimum threshold that you want your analysis to reach, by using the --threshold option (the value must be a number between 0 and 100):

  • npx heart observatory --file observatory.json --threshold 85
    

Note that Heart does a soft check: the program does not trigger an error if the threshold is not reached.

FAQs

Package last updated on 23 Nov 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