Node.js > Cross-Platform
Writing cross-platform code on Node.js.
Contents
Applications
Manage multiple installations of Node.js on a Windows computer.
Node version manager for macOS/Linux.
Node version manager for macOS/Linux.
Upgrade npm on Windows.
Install C++ Build Tools for Windows using npm.
Windows/macOS/Linux. GitHub Actions makes it easy to automate all your software workflows.
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.
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.
Cross-platform copy/paste.
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
Delete files and folders. Cross-platform.
Delete files and folders. Cross-platform.
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.