https://github.com/david-pena/slash-fix
A CLI tool that automatically normalizes file paths by converting backslashes to forward slashes and copies the fixed path to your clipboard.
https://github.com/david-pena/slash-fix
cli path-normalize productivity-tools
Last synced: 3 months ago
JSON representation
A CLI tool that automatically normalizes file paths by converting backslashes to forward slashes and copies the fixed path to your clipboard.
- Host: GitHub
- URL: https://github.com/david-pena/slash-fix
- Owner: David-Pena
- License: mit
- Created: 2024-08-14T00:31:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-17T07:32:00.000Z (over 1 year ago)
- Last Synced: 2025-10-10T06:34:21.475Z (6 months ago)
- Topics: cli, path-normalize, productivity-tools
- Language: TypeScript
- Homepage:
- Size: 99.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Slash Fix
A CLI tool that automatically normalizes file paths by converting backslashes to forward slashes and copies the fixed path to your clipboard.
## ⬇️ Installation
This tool aims to be useful globally, not associated with a specific project. So I recommend installing it with `-g` flag
```bash
npm install -g slash-fix
```
## ⚙️ Usage
> [!IMPORTANT]
> The given path MUST be inside quotes ONLY if you are using `bash`
```bash
npx slash-fix fixer "path\to\some\file"
```
## 📊 Example Output

## 🧩 Use Cases
There is only one use-case which I aim to handle with this tool.
Sometimes I need to `copy` a relative or full path and use it as input to some other tool or process. All path from the `file-explorer` in windows have the following structure `path\to\some\file\somewhere` so I just paste it and manually replace the `\` with `/`.
This tool takes care of that. That's it 👌
> [!IMPORTANT]
> If you have any other case where this toll would be useful, please let me know how I can improve it.
## 🤝 How to contribute?
See [CONTRIBUTING.md](https://github.com/David-Pena/slash-fix/blob/main/CONTRIBUTING.md) file.