Skip to content

Instantly share code, notes, and snippets.

View huntie's full-sized avatar

Alex Hunt huntie

View GitHub Profile
@huntie
huntie / yarn_licences_md_table.sh
Last active June 16, 2021 20:20 — forked from Radagaisus/ThirdPartyNoticesExample.md
Script to generate a Markdown table from `yarn licenses list`
#!/bin/sh
# Output a dependencies.md file with a table of installed Yarn dependencies
# Requires csvkit, jq
# https://csvkit.readthedocs.io/en/0.9.1/install.html
# https://stedolan.github.io/jq/download/
yarn licenses list --json \
| jq --slurp 'map(select(.type == "table"))' \