Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@beuluis/hook-cli

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beuluis/hook-cli

A small hook cli that can be used with for example husky

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24
decreased by-4%
Maintainers
1
Weekly downloads
 
Created
Source

Contributors Forks Stargazers Issues


Logo

hook-cli

A small hook cli

· Report Bug · Request Feature ·

About The Project

A small hook cli that can be used with for example husky.

Disclaimer

I know that most of this stuff is already solved by some awesome tools. So this is really just a CLI playground for me.

Installation

npm i -D @beuluis/hook-cli

Usage

  1. Add script to package.json

    {
        "scripts": {
            "hook-cli": "hook-cli"
        }
    }
    
  2. start using the hooks in .husky

    npm run hook-cli -- [command] [...]
    

Commands

checkForVulnerabilities

Runs a package audit and collects the results

OptionDescriptionTypedefault
-m, --package-managerThe package manager you want to useyarn, npmnpm
-l, --audit-levelThe severity of the vulnerabilities what the script will reportinfo, low, moderate, high, criticalcritical
-n, --no-failIf true only prints warning messages and do not exit with not zero codebooleanfalse
-p, --prodIf true only run audit for prod dependencies and skip dev onesbooleanfalse
Example usage
npm run hook-cli -- checkForVulnerabilities
npm run hook-cli -- checkForVulnerabilities --package-manager yarn
npm run hook-cli -- checkForVulnerabilities --audit-level low
npm run hook-cli -- checkForVulnerabilities --no-fail
npm run hook-cli -- checkForVulnerabilities --prod
npm run hook-cli -- checkForVulnerabilities -l high -m yarn -n -p

Useful

Print help page for command

npm run hook-cli -- [command] --help

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contact

Luis Beu - me@luisbeu.de

FAQs

Package last updated on 27 May 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