https://github.com/dcts/license-scraper
Utility to scrape license data (name and url) from NPM, RubyGems, CocoaPods and Github.
https://github.com/dcts/license-scraper
Last synced: 2 months ago
JSON representation
Utility to scrape license data (name and url) from NPM, RubyGems, CocoaPods and Github.
- Host: GitHub
- URL: https://github.com/dcts/license-scraper
- Owner: dcts
- License: mit
- Created: 2022-06-21T12:26:56.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-26T21:42:18.000Z (almost 4 years ago)
- Last Synced: 2026-03-25T23:49:39.247Z (3 months ago)
- Language: JavaScript
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# License Scraper with Multi Plattform Support
A utility that scrapes a packages license name and the url to the package license (usually from github). Supported plattforms:
- npmjs.com ✅
- rubygems.org ✅
- cocoapods.org ✅
- github.com (helper) ✅
# Examples
```js
// NPM (uses github helper)
await LicenseScraper.npmPackage("opensea-scraper");
// Github (helper)
await LicenseScraper.githubRepo("dcts/opensea-scraper");
// RubyGems (uses github helper)
await LicenseScraper.rubyGem("rails");
// CocoaPods (uses github helper)
await LicenseScraper.cocoaPod("FirebaseUI");
```
# Scripts (WIP)
This repository contains bash scripts that allow you to print all dependencies to the terminal. You can then save all those outputs to a file. Instructions:
1. navigate to your nodejs projects node_modules folder
2. run the following code
```bash
# directory and filename of the output file
outputFilePath = "/your/path/yourFilename.txt"
# run and save output to file
pmodules > outputFilePath
```