Skip to content

Instantly share code, notes, and snippets.

@jbinto

jbinto/foo.sh

Created Feb 7, 2017
Embed
What would you like to do?
Extract info from npm packages
cat /tmp/packages.txt | while read PACKAGE
do
yarn info $PACKAGE --json |
head -n1 |
jq --raw-output '"\"\(.data.name)\", \"\(.data.version)\", \"\(.data.homepage)\", \"\(.data.license)\", \"\(.data.description)\""' |
tee -a /tmp/output3.txt
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment