Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Support #2

Open
abhisheksoni27 opened this issue Jul 21, 2017 · 4 comments
Open

Windows Support #2

abhisheksoni27 opened this issue Jul 21, 2017 · 4 comments

Comments

@abhisheksoni27
Copy link
Owner

A good starting point: tasklist https://technet.microsoft.com/en-us/library/bb491010.aspx

@1j01
Copy link

1j01 commented Aug 28, 2017

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.

@abhisheksoni27
Copy link
Owner Author

@1j01 Thank you for that awesome module, Sir.

Would you like to contribute to codespell?

@1j01
Copy link

1j01 commented Aug 30, 2017

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.)

@abhisheksoni27
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants