Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 587 Bytes

File metadata and controls

32 lines (22 loc) · 587 Bytes

NPM Attribution Guide

0. Install license tools (Only required once)

brew install jq
npm i -g oss-attribution-generator
npm i -g license-checker

1. Regenerate dependencies first

npm run clean
npm install

2. Generate Attribution

npm run generate-attributions

Misc

Check licenses

license-checker --production --exclude MIT,Apache-2.0,BSD-2-Clause,BSD-3-Clause,ISC,0BSD

npx license-checker --json | jq 'to_entries | group_by(.value.licenses) | map({key: .[0].value.licenses, value: map(.key)}) | from_entries'