go-license-scraper
v0.3.8
Published
go-license-scraper collects go module license by scraping http://pkg.go.dev (or http://github.com if its path includes github.com) with [Playwright](https://playwright.dev/).
Downloads
126
Maintainers
Readme
go-license-scraper
go-license-scraper collects go module license by scraping http://pkg.go.dev (or http://github.com if its path includes github.com) with Playwright.
Prerequisite
- Node.js
- Google Chrome
- Your Golang project
Install
$ npm install --location=global go-license-scraper
Usage
$ cd path/to/your/directory/of/go.mod
$ go-license-scraper PATH/TO/LICENSES.csv
Chrome Canary or Microsoft Edge
Set browser channel to environment variable BROWSER_CHANNEL
.
If you want to use Microsoft Edge instead of Chrome, set msedge
.
See https://playwright.dev/docs/api/class-testoptions#test-options-channel for more details.