danmakenoise / link-status

A simple CLI to display all of the Node modules you have currently linked through `npm link`.
7 stars 2 forks source link

Add Windows support #6

Open MicahZoltu opened 7 years ago

MicahZoltu commented 7 years ago

Would be nice to have Windows support. Finding linked packages on Windows is particularly hard because all of the Stack Overflow answers are in Linux (using linux tools that don't exist on Windows). It appears this package does too. 😢

> link-status --source --prettify
{ Error: Command failed: find ./node_modules/ -maxdepth 2 -type l -ls
FIND: Parameter format not correct

    at ChildProcess.exithandler (child_process.js:206:12)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:877:16)
    at Socket.<anonymous> (internal/child_process.js:334:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:498:12)
  killed: false,
  code: 2,
  signal: null,
  cmd: 'find ./node_modules/ -maxdepth 2 -type l -ls' }

         NO LINKS FOUND

In particular, find isn't available. Would be nice if this package just used JavaScript/node so it was cross-platform rather than using CLI tools on the host.

danmakenoise commented 7 years ago

I would love some help with making this usable on PC. I don't personally have a PC to test this on. Is that something you could help out with?

MicahZoltu commented 7 years ago

I wouldn't mind helping out with testing on Windows, but I don't have the bandwidth available at the moment to craft a solution myself.

Definitely let me know if you want me to test out an alternative solution to this problem (such as using node calls only) on Windows though!