codespell
codespell copied to clipboard
Windows Support
A good starting point: tasklist https://technet.microsoft.com/en-us/library/bb491010.aspx
I've created a node module process-tree that works cross-platform.
The documentation consists of just a code example, but it should be simple to use.
It uses wmic on Windows.
@1j01 Thank you for that awesome module, Sir.
Would you like to contribute to codespell?
I haven't used the tool, and I'm probably not gonna get any benefit from it unless it can track the active window. I've mainly been using Cloud9 IDE recently, and I generally leave editors open, so an editor being open isn't gonna be a very useful statistic, unless I change that and get in a habit of closing things.
I've realized process-tree would need to be able to return all the processes to be helpful here, not just one that matches a pid, which is something I'd planned but not implemented; and it should be fairly trivial, but the whole module is fairly trivial, and we don't need to list child processes in a tree, so it might make more sense to port over some of the code into this project, rewriting it in JS.
(Which I have started doing.)
Exactly. We don't need the tree structure. I guess it'd be easier and quicker if we could port the idea behind process-tree to this project, as you said.