What problem does it solve?
Prevent platform-specific bugs caused by inconsistent path handling, illegal filenames, and unreliable Git command usage across Windows, macOS, and Linux, reducing buggy releases and developer friction.
Core Features & Use Cases
- Safe filenames: Replace colons in ISO timestamps and centralize a safeTimestamp utility to produce filenames valid on Windows.
- Robust Git workflows: Avoid using git -C with Windows paths, prefer changing directories first, and use temporary files for commit messages to prevent PowerShell newline issues.
- Platform-aware path handling: Use path.join/path.resolve, perform case-insensitive comparisons on Windows and macOS where appropriate, and guard rootDir confinement checks to prevent false negatives.
- Use Case: Apply these patterns when writing cross-platform automation, CI scripts, or repository tooling that must run reliably in mixed-OS teams.
Quick Start
Normalize this repository's paths for cross-platform safety, convert timestamps into safe filenames, and produce a git workflow that avoids git -C and inline newlines in commit messages.