As long as you already have Node installed, you can install the package with
npm i wuht -g.
wuht followed by the keyword you want to look up, for example:
This will print the entire MDN entry for whichever keyword you enter, code snippets and all:
wuht works with all of the official reserved keywords as of ES6, as well as the keywords
I may try to expand the functionality to include more of the MDN documentation in the future, but the challenge is in keeping the search commands to intuitive single words.
If you encounter any issues with the package or otherwise have feedback, I’d love to hear from you. In the meantime I hope this package allows you to close a few browser tabs and improve your workflow.