https://github.com/r0mflip/fetchlicense
⬇ A (1KB) utility to fetch a license from GitHub API
https://github.com/r0mflip/fetchlicense
api cli fetch github license
Last synced: 11 months ago
JSON representation
⬇ A (1KB) utility to fetch a license from GitHub API
- Host: GitHub
- URL: https://github.com/r0mflip/fetchlicense
- Owner: r0mflip
- License: mit
- Created: 2019-06-09T11:21:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T01:44:38.000Z (almost 4 years ago)
- Last Synced: 2025-01-08T09:53:43.348Z (about 1 year ago)
- Topics: api, cli, fetch, github, license
- Language: JavaScript
- Homepage:
- Size: 53.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# `fetchlicense`
[](https://www.npmjs.com/package/fetchlicense)
[](https://packagephobia.now.sh/result?p=fetchlicense)
A (1KB) utility to fetch a license for use with GitHub _(fetched from [Github API](https://api.github.com/licenses/))_
## Usage
``` sh
$ npx fetchlicense [SPDX_LICENSE_IDENTIFIER] > LICENSE
```
`SPDX_LICENSE_IDENTIFIER` _(optional)_ : Any license identifier from the [SPDX License List](https://spdx.org/licenses/)
_(defaults to `license` field of `package.json` in current directory)_
## License
[MIT](LICENSE)
> Fetched by using this utility 😁