Skip to content

Instantly share code, notes, and snippets.

@FGRibreau
Last active October 4, 2016 07:45
Gron vs curl + node
curl -s "https://api.github.com/repos/tomnomnom/gron/commits?per_page=1" | node -e "let s=process.openStdin(),d='';s.on('data',c=>d+=c).on('end',()=>console.log(JSON.stringify(require('flat')(JSON.parse(d)), null, 1).slice(1, -1).replace(/ /g,'').trim()));"
"0.sha":"28f8f523b25be8c85f5fed2ada8dac54076e9902",
"0.commit.author.name":"TomHudson",
"0.commit.author.email":"mail@tomnomnom.com",
"0.commit.author.date":"2016-09-17T20:11:51Z",
"0.commit.committer.name":"TomHudson",
"0.commit.committer.email":"mail@tomnomnom.com",
"0.commit.committer.date":"2016-09-17T20:11:51Z",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment