3 ms·
Show HN: Ntee – portable Unix shell tee command in Node
- alexandersalas 11y agoVery good way, and it's a good boilerplate for new CLIs :)
- v3ss0n 11y agoNeed to install node runtime for this very simple cli?
- alexstefan92 11y agoYes. You wouldn't use this unless you're used to work with node.js, you have `tee` on all unix-like systems. I created `ntee` to replace `tee` inside NPM scripts, so they support both unix-like systems and windows systems. This is an interesting article that explains what NPM scripts are: http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/ http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool...
- chilicuil 11y agoI use this alias for tree: alias tree='_tree(){ ([ -z "$1" ] || \cd $1 2>/dev/null && \find . -print | sort | sed -e '\''1s/./┬/'\'' -e '\''s;[^/]/;│ ;g;s;│ \([^│]\);├── \1;g'\'';)}; _tree' On Unix systems who doesn't have it
- stefanmaric 11y agoHey awesome! I usually have to install the `tree` package for that. But `ntee` reassembles `tee`, not `tree`. :)