Skip to content

Instantly share code, notes, and snippets.

@Radagaisus
Created October 20, 2016 23:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Radagaisus/3062aa755a9f44db93b0307e38767a4c to your computer and use it in GitHub Desktop.
Save Radagaisus/3062aa755a9f44db93b0307e38767a4c to your computer and use it in GitHub Desktop.
Markdown Table from Yarn Licenses (YMMV)
yarn licenses ls --json \
| jq --slurp 'map(select(.type == "table"))' \
| jq -c [.[0].data.head],.[0].data.body \
| sed -E $'s/\],\[/\\\n/g' \
| csvlook \
| sed -E 's/(\[|\]|")+/ /g' \
| sed -E 's/\+/\|/g' \
| ghead -n -1 \
| tail +2 \
>> ThirdPartyNotices.md
Name Version License URL
align-text 0.1.4 MIT git://github.com/jonschlinkert/align-text.git
amdefine 1.0.0 BSD-3-Clause AND MIT https://github.com/jrburke/amdefine.git
async 1.5.2 MIT https://github.com/caolan/async.git
async 0.2.10 MIT https://github.com/caolan/async.git
balanced-match 0.4.2 MIT git://github.com/juliangruber/balanced-match.git
brace-expansion 1.1.6 MIT git://github.com/juliangruber/brace-expansion.git
camelcase 1.2.1 MIT https://github.com/sindresorhus/camelcase.git
center-align 0.1.3 MIT https://github.com/jonschlinkert/center-align.git
cliui 2.1.0 ISC http://github.com/bcoe/cliui.git
concat-map 0.0.1 MIT git://github.com/substack/node-concat-map.git
decamelize 1.2.0 MIT https://github.com/sindresorhus/decamelize.git
fs-extra 0.30.0 MIT https://github.com/jprichardson/node-fs-extra
fs.realpath 1.0.0 ISC git
glob 7.1.1 ISC git://github.com/isaacs/node-glob.git
graceful-fs 4.1.9 ISC https://github.com/isaacs/node-graceful-fs
handlebars 4.0.5 MIT https://github.com/wycats/handlebars.js.git
highlight.js 9.7.0 BSD-3-Clause git://github.com/isagalaev/highlight.js.git
inflight 1.0.6 ISC https://github.com/npm/inflight.git
inherits 2.0.3 ISC git://github.com/isaacs/inherits
interpret 1.0.1 MIT git://github.com/tkellen/node-interpret.git
is-buffer 1.1.4 MIT git://github.com/feross/is-buffer.git
jsonfile 2.4.0 MIT git@github.com:jprichardson/node-jsonfile.git
kind-of 3.0.4 MIT https://github.com/jonschlinkert/kind-of.git
klaw 1.3.0 MIT git
lazy-cache 1.0.4 MIT https://github.com/jonschlinkert/lazy-cache.git
lodash 4.16.4 MIT https://github.com/lodash/lodash.git
longest 1.0.1 MIT https://github.com/jonschlinkert/longest.git
marked 0.3.6 MIT git://github.com/chjj/marked.git
minimatch 3.0.3 ISC git://github.com/isaacs/minimatch.git
minimist 0.0.10 MIT git://github.com/substack/minimist.git
once 1.4.0 ISC git://github.com/isaacs/once
optimist 0.6.1 MIT http://github.com/substack/node-optimist.git
path-is-absolute 1.0.1 MIT https://github.com/sindresorhus/path-is-absolute.git
progress 1.1.8 MIT git://github.com/visionmedia/node-progress
rechoir 0.6.2 MIT git://github.com/tkellen/node-rechoir.git
repeat-string 1.5.4 MIT https://github.com/jonschlinkert/repeat-string.git
resolve 1.1.7 MIT git://github.com/substack/node-resolve.git
right-align 0.1.3 MIT git://github.com/jonschlinkert/right-align.git
rimraf 2.5.4 ISC git://github.com/isaacs/rimraf.git
seedrandom 2.4.2 MIT git://github.com/davidbau/seedrandom.git
shelljs 0.7.4 BSD-3-Clause git://github.com/shelljs/shelljs.git
source-map 0.5.6 BSD-3-Clause http://github.com/mozilla/source-map.git
source-map 0.4.4 BSD-3-Clause http://github.com/mozilla/source-map.git
typedoc 0.5.0 Apache-2.0 git://github.com/TypeStrong/TypeDoc.git
typedoc-default-themes 0.4.0 Apache-2.0 git://github.com/sebastian-lenz/typedoc-default-themes.git
typescript 2.0.3 Apache-2.0 https://github.com/Microsoft/TypeScript.git
uglify-js 2.7.3 BSD-2-Clause https://github.com/mishoo/UglifyJS2.git
uglify-to-browserify 1.0.2 MIT https://github.com/ForbesLindesay/uglify-to-browserify.git
window-size 0.1.0 MIT https://github.com/jonschlinkert/window-size.git
wordwrap 0.0.2 MIT git://github.com/substack/node-wordwrap.git
wordwrap 0.0.3 MIT git://github.com/substack/node-wordwrap.git
wrappy 1.0.2 ISC https://github.com/npm/wrappy
yargs 3.10.0 MIT http://github.com/bcoe/yargs.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment