Cross-Platform
Resources
Especially the [`os`](https://nodejs.org/api/os.html), [`path`](https://nodejs.org/api/path.html), [`fs`](https://nodejs.org/api/fs.html), [`process`](https://nodejs.org/api/process.html) and [`child_process`](https://nodejs.org/api/child_process.html) modules.
How to write cross-platform Node.js code.
Tips, tricks, and resources for working with Node.js on Microsoft platforms.
Great tutorial covering many common issues that arise when writing cross-platform code: path creation, script execution, newline characters.
All the characters that work on most terminals and most operating systems.
Applications
Development environment
Node.js installer for various platforms.
Manage multiple installations of Node.js on a Windows computer.
Upgrade npm on Windows.
Install C++ Build Tools for Windows using npm.
Continuous integration
Focused on Windows. Free tiers are available for OSS projects.
Windows/macOS/Linux. Free for OSS projects.
Windows/macOS/Linux. Free for OSS projects with 10 parallel jobs.
Windows/macOS/Linux. GitHub Actions makes it easy to automate all your software workflows.
Windows/macOS/Linux. GitLab CI/CD is a tool built into GitLab for software development.
Virtualization
Automated installer for the free virtual machine images that Microsoft provides for testing on multiple versions of IE. These images can be useful for cross-platform testing various technologies, however make sure you read and understand Microsofts' licensing.
General purpose software for running x86 virtual machines.
Software platform to create, deploy and manage virtualized application containers on a common operating system, with an ecosystem of allied tools.
Compatibility
Run Windows API calls on Linux, Mac, BSD and Solaris.
Run POSIX on Windows.
Run the Linux command line on Windows (ELF binary execution, system calls, filesystem, Bash, core utilities, common applications).
`gcc` on Windows.
Databases
Native port of Redis for Windows.
Libraries
OS identification
Detect whether the current platform is Windows.
Detect whether current platform is WSL (Windows Subsystem for Linux).
Retrieve the current OS, including Linux distribution.
Get the name of the current operating system.
Hardware/software system information.
Shell
Cross-platform implementation of `child_process.{execFile,exec}`.
Cross-platform command execution in Gulp.js.
Cross-platform implementation of `child_process.spawn()`.
Cross-platform Unix shell commands.
Windows support for Node.js scripts (daemons, eventlog, UAC, etc).
Colored symbols for various log levels with Windows fallbacks.
Unicode symbols with Windows fallbacks.
- clipboardy / clipboard-cli - Cross-platform copy/paste.
Environment
Set environment variables cross-platform.
Get the path to the user home directory. Cross-platform.
Get the current username.
Cross-platform environment variables.
Check if the process is running with elevated privileges.
Cross-platform implementation of Unix's `which`.
Filesystem
Cross-platform `mkdir -p`.
Recursive version of `fs.readdir()`.
Copy files. Cross-platform.
Improved cross-platform file watching.
Improves the `fs` module, especially on Windows.
Combines `graceful-fs` with better JSON file reading and promises.
Use Windows and POSIX paths interchangeably when fetching values from an object.
Cross-platform `/dev/null`.
Get the global OS-specific cache directory.
Signals
Kill processes. Cross-platform.
Cross-platform `exit` handler.
Human-friendly process signals.
Processes
Get running processes.
Check if a process exists.
Streams
Cross-platform `fs.createReadStream('/dev/null')`.
Cross-platform `fs.createReadStream('/dev/urandom')`.
Desktop UI
Opens stuff like websites, files, executables. Cross-platform.
Cross-platform desktop notifications.
Windows registry
Access the Windows registry.
Access/modify the Windows registry.
Access/modify the Windows registry and set file associations.
Known issues
By default, `cmd.exe` does not display Unicode characters on Windows.
`child_process.spawn()` behavior is not consistent between Windows and Linux.
Depending on the shell being used, e.g., bash vs. dash, `child_process.exec()` has inconsistent exit behavior.
See also
List of tools to build JavaScript applications on the desktop.
Support
If you found an error or would like to add more information, don't hesitate to
submit an issue on GitHub.
Everyone is welcome regardless of personal background. We enforce a
Code of conduct in order to promote a positive and
inclusive environment.