Hacker News new | ask | show | jobs
by _iostreamer_ 3615 days ago
This seems to work, (ps -ef)().map((a)=>{return [a[0],a[7]]}).forEach((a)=>{console.log(a)})
1 comments

Ah, put the whole command in parens!

It might make sense to put a note in the README about that, unless it's already there and I missed it somehow...

I am sorry, it slipped from my mind. I will add it now.
Just a note, _iostreamer_, you can use `command.parse` in Vorpal to pre-append parens to every command before it's evaluated (your project is written in Vorpal).

BTW, love this idea.

- the Vorpal guy