Giter Club home page Giter Club logo

deps's Introduction

Deps

Deps 是一个帮助获取项目依赖包的版本、开源协议、安全漏洞等清单的工具,数据源来自 Google 的 deps.dev 项目,当前支持 Go、Java。

Feature

image

Install

Binary

Releases

Source

go install github.com/hb-chen/deps@latest

Usage

Usage:
  deps [flags]

Flags:
  -h, --help             help for deps
  -o, --out string       template output filepath (default "./deps.md")
  -p, --project string   project path (default "", use "pwd")
      --skip strings     skip scrape package regexp pattern
  -s, --system string    system type:auto, mod, maven (default "auto")
  -t, --tpl string       template output template filepath. md.tpl,csv.tpl or custom template filepath (default "md.tpl")
  -v, --version          version for deps
  • --skip 忽略非开源依赖包
    • deps -s maven -p ./ --skip="com.hbchen.*"

Golang

# Run
cd {golang project path}
deps -s mod
# Or run with -p
deps -s mod -p {project path}

# Output
# Markdown
./deps.md

# Stdout
Dependencies:
Pkg: golang.org/x/tools, Licenses: BSD-3-Clause , Direct: false ,Advisories: 0 
Pkg: github.com/kr/text, Licenses: MIT , Direct: false ,Advisories: 0 
Pkg: golang.org/x/mod, Licenses: BSD-3-Clause , Direct: false ,Advisories: 0 
...

Maven

引入依赖 github.com/ferstl/depgraph-maven-plugin,能够通过 mvnw depgraph:graph OR mvn depgraph:graph 生成 target/dependency-graph.json

# Run
cd {golang project path}
deps -s maven
# Or run with -p
# deps -s go -p {project path}
deps -s maven -p ./example/java/

# Output
# Markdown
./deps.md

# Stdout
Dependencies:
Pkg: org.mockito:mockito-junit-jupiter, Licenses: MIT , Direct: false ,Advisories: 0 
Pkg: org.ow2.asm:asm, Licenses: BSD-3-Clause , Direct: false ,Advisories: 0 
Pkg: jakarta.xml.bind:jakarta.xml.bind-api, Licenses: non-standard , Direct: false ,Advisories: 0 
Pkg: org.apache.logging.log4j:log4j-api, Licenses: Apache-2.0 , Direct: false ,Advisories: 0 
...

deps.dev API

deps's People

Contributors

hb-chen avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

deps's Issues

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.