Created
February 7, 2017 00:32
Star
You must be signed in to star a gist
Extract info from npm packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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