TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

NPM package is-windows is a one line function but used by 2.5M repos

8 pointsby humilityalmost 6 years ago

1 comment

tannhaeuseralmost 6 years ago
It's laughable, but actually I've been in the exact situation to prevent a published app from running on Windows, because the app makes specific assumptions wrt shared read/write file access and locking semantics, composing file names, and spawning shell scripts as child processes. So I guess widepread use of is-windows comes from wanting a commonly understood pattern to block running on Windows, not having tested your app on Windows, etc. What's best practice to follow here?
评论 #20194930 未加载