Awesome Cross Platform Nodejs Overview
:two_men_holding_hands: A curated list of awesome developer tools for writing cross-platform Node.js code
🏠 Home · 🔥 Feed · 📮 Subscribe · ❤️ Sponsor · 😺 bcoe/awesome-cross-platform-nodejs · ⭐ 1K · 🏷️ Platforms
Contents
Resources
- Core Node.js documentation - Especially the
os
,path
,fs
,process
andchild_process
modules. - Cross-platform Node.js guide (⭐1.3k) - How to write cross-platform Node.js code.
- Microsoft Node.js Guidelines (⭐2.4k) - Tips, tricks, and resources for working with Node.js on Microsoft platforms.
- Writing Cross-Platform Node.js - Great tutorial covering many common issues that arise when writing cross-platform code: path creation, script execution, newline characters.
- Cross-platform terminal characters (⭐188) - All the characters that work on most terminals and most operating systems.
Applications
Development environment
- Node.js - Node.js installer for various platforms.
- nvm-windows (⭐24k) - Manage multiple installations of Node.js on a Windows computer.
- nvm (⭐62k) / n (⭐17k) - Node version manager for macOS/Linux.
- npm-windows-upgrade (⭐2.5k) - Upgrade npm on Windows.
- windows-build-tools (⭐3.3k) - Install C++ Build Tools for Windows using npm.
Continuous integration
- AppVeyor - Focused on Windows. Free tiers are available for OSS projects.
- Travis - Windows/macOS/Linux. Free for OSS projects.
- Azure Pipelines - Windows/macOS/Linux. Free for OSS projects with 10 parallel jobs.
- Github Action - Windows/macOS/Linux. GitHub Actions makes it easy to automate all your software workflows.
- Gitlab CI - Windows/macOS/Linux. GitLab CI/CD is a tool built into GitLab for software development.
Virtualization
- ievms (⭐69) - 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.
- VirtualBox - General purpose software for running x86 virtual machines.
- Docker - Software platform to create, deploy and manage virtualized application containers on a common operating system, with an ecosystem of allied tools.
Compatibility
- Wine - Run Windows API calls on Linux, Mac, BSD and Solaris.
- Cygwin - Run POSIX on Windows.
- WSL - Run the Linux command line on Windows (ELF binary execution, system calls, filesystem, Bash, core utilities, common applications).
- MinGW -
gcc
on Windows. - msys / Git Bash - Bash on Windows.
Databases
- Redis (⭐6k) - Native port of Redis for Windows.
Libraries
OS identification
- is-windows (⭐47) - Detect whether the current platform is Windows.
- is-wsl (⭐168) - Detect whether current platform is WSL (Windows Subsystem for Linux).
- getos (⭐74) - Retrieve the current OS, including Linux distribution.
- os-name (⭐125) - Get the name of the current operating system.
- systeminformation (⭐2.1k) - Hardware/software system information.
Shell
- execa (⭐4.9k) - Cross-platform implementation of
child_process.{execFile,exec}
. - gulp-execa (⭐52) - Cross-platform command execution in Gulp.js.
- cross-spawn (⭐982) - Cross-platform implementation of
child_process.spawn()
. - shelljs (⭐14k) - Cross-platform Unix shell commands.
- node-windows (⭐2.5k) - Windows support for Node.js scripts (daemons, eventlog, UAC, etc).
- log-symbols (⭐682) - Colored symbols for various log levels with Windows fallbacks.
- figures (⭐537) - Unicode symbols with Windows fallbacks.
- clipboardy (⭐1.5k) / clipboard-cli (⭐460) - Cross-platform copy/paste.
Environment
- cross-env (⭐5.9k) - Set environment variables cross-platform.
- user-home (⭐160) - Get the path to the user home directory. Cross-platform.
- username (⭐140) - Get the current username.
- osenv (⭐135) - Cross-platform environment variables.
- is-elevated (⭐36) - Check if the process is running with elevated privileges.
- which (⭐278) - Cross-platform implementation of Unix's
which
.
Filesystem
- rimraf (⭐4.9k) / del (⭐1.3k) - Delete files and folders. Cross-platform.
- make-dir (⭐459) - Cross-platform
mkdir -p
. - readdirp (⭐361) - Recursive version of
fs.readdir()
. - cpy (⭐380) - Copy files. Cross-platform.
- chokidar (⭐9.4k) - Improved cross-platform file watching.
- graceful-fs (⭐1.2k) - Improves the
fs
module, especially on Windows. - fs-extra (⭐8.7k) - Combines
graceful-fs
with better JSON file reading and promises. - any-path (⭐5) - Use Windows and POSIX paths interchangeably when fetching values from an object.
- dev-null-cli (⭐91) - Cross-platform
/dev/null
. - global-cache-dir (⭐4) - Get the global OS-specific cache directory.
Signals
- fkill (⭐665) - Kill processes. Cross-platform.
- signal-exit (⭐166) - Cross-platform
exit
handler. - human-signals (⭐253) - Human-friendly process signals.
Processes
- ps-list (⭐239) - Get running processes.
- process-exists (⭐56) - Check if a process exists.
Streams
- noop-stream (⭐46) - Cross-platform
fs.createReadStream('/dev/null')
. - random-bytes-readable-stream (⭐74) - Cross-platform
fs.createReadStream('/dev/urandom')
.
Desktop UI
- open (⭐2.7k) - Opens stuff like websites, files, executables. Cross-platform.
- node-notifier (⭐5.5k) - Cross-platform desktop notifications.
Windows registry
- node-winreg (⭐200) - Access the Windows registry.
- rage-edit (⭐45) - Access/modify the Windows registry.
- windows-registry-node (⭐103) - Access/modify the Windows registry and set file associations.
Known issues
- cmd.exe unicode woes (⭐35k) - By default,
cmd.exe
does not display Unicode characters on Windows. - spawn issues (⭐35k) -
child_process.spawn()
behavior is not consistent between Windows and Linux. - exec() behavior between shells (⭐35) - Depending on the shell being used, e.g., bash vs. dash,
child_process.exec()
has inconsistent exit behavior.
See also
- awesome-desktop-js (⭐694) - 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.
Contributing
This project was made with ❤️. The simplest way to give back is by starring and sharing it online.
If the documentation is unclear or has a typo, please click on the page's Edit
button (pencil icon) and suggest a correction.
If you would like to help us fix an error or add more information, please check our guidelines. Pull requests are welcome!
Thanks go to these wonderful people:
Benjamin E. Coe 💻 🤔 📖 | ehmicky 💻 🤔 📖 | Sindre Sorhus 💻 🤔 📖 | Hongarc 🎨 📖 💻 | Kent C. Dodds 🤔 | Jason Cooke 📖 | Aron Hafner 📖 |
ShPelles 📖 | Xiaodan Mao 📖 | James Talmage 📖 | Sylvain PONTOREAU 📖 | Steven 🤔 |
This project follows the all-contributors (⭐6.7k) specification.