pipetree
Utility library to enable easy piping between nodejs programs and tree traversing of graphs
const select = selectconst listen = listen // get a function to traverse a tree - this one returns the first occurance// of the field "browser_download_url"const getDownloadUrl = select // use this function when the piped input is readselect { // use the querySelector from select on the parsed JSON piped input const downloadUrl = console} // attach select to handle the "listen" output when readselectstart// start listening for piped inputlistenstart
License
MIT