2.0.3 • Published 7 months ago

opensoda-cli v2.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

npm.io npm.io npm.io npm.io

npm.io

This tool is developed by LazyAnalysis group in Opendigger competition.

LazyAnalysis

About this project

A terminal tool to have a easy view of metrics of popular github repositories. Apis in this tool are supported by X-lab2017.

This project is powered🚀 by create-node-cli, and its project site: https://www.npmjs.com/package/create-node-cli

Node version: 18.17.0

To ensure smooth execution of this TypeScript project, it's recommended to run tsc --watch in a separate terminal to listen for project changes before executing the project. If you haven't installed TypeScript yet, you'll need to run npm install typescript -g to install it.

Install

This repository uses pnpm as its package manager. Before starting to use it, make sure you have installed pnpm, which can be viewed by command pnpm -v, and if pnpm is not installed, just type in npm i pnpm -g to install it!

To install this tool, run pnpm install and npm link under the sorce code folder.

pnpm install
npm link

or you can just install by npm -g:

npm i opensoda-cli -g

Usage

Run opendigger -h for detail.

basic usage template:

opendigger -r <author/repo-name> [-m <metric> -t <time> -d]

here are some examples:

You can get openrank of valhalla/valhalla by typing in terminal:

opendigger -r=valhalla/valhalla -m=openrank

npm.io

If you want to explore an another repo, just type in opendigger -r <author/repo_name> -m openrank to get the information. Here -r indicates a repository url, -m indicates the metric to be used.

For more information of metrics, please visit https://github.com/X-lab2017/open-digger#metrics-or-indices-usage. Hopefully you will be excited at the wonderful world. And I'm very appreciated of you to contribute to it!

You can also export report to local, just add -d choice. Have a try of

opendigger -r=valhalla/valhalla -m=openrank -d

npm.io

the exported markdown includes picture generated by echarts and data you queried. The report and picture will be stored at ./opendigger-output/

What's more, you can specify a time to search one metric at specific time. This command

opendigger -r=valhalla/valhalla -m=openrank -t=2022-10

will return the activity metric of repository valhalla/valhalla in 2022-10 and save the result.

npm.io

Searching all of the metrics at a specific time is supported, just without specifying metric argument. Try command

opendigger -r=valhalla/valhalla -t=2022-10

npm.io

Now it is supported to search all of the metrics of all months:

opendigger -r=valhalla/valhalla -t=2022-10

npm.io

Searching all of the metrics of all months, and store the report in markdown:

opendigger -r=valhalla/valhalla -d

npm.io the result will be very exciting!

Online experience 😋

To help experience this tool with no difficulties, we developed a website. This is how it looks like now:

npm.io

More features are coming soon~

2.0.3

7 months ago

2.0.2

7 months ago

1.6.6

7 months ago

1.6.5

7 months ago

2.0.1

7 months ago

2.0.0

7 months ago

1.6.4

8 months ago

1.6.3

8 months ago

1.6.2

8 months ago

1.6.1

8 months ago

1.6.0

8 months ago

1.5.0

8 months ago

1.4.0

8 months ago

1.3.0

8 months ago

1.1.0

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

11 months ago