flyingant-path-pilot
v1.1.0
Published
[](https://www.npmjs.com/package/flyingant-path-pilot) [](https://opensource.org/licenses/MIT)
Readme
🚀 Path-Pilot
Path-Pilot is a lightning-fast Node.js CLI tool designed to end "Relative Path Hell."
Give it two file paths, and it will instantly calculate the exact relative import path between them, format it for JavaScript, and automatically copy it to your system clipboard.
✨ Features
- Instant Calculation: Accurately determines the relative path between any two files in your project.
- Smart Formatting: Automatically handles the
./prefix requirement for same-folder imports in JavaScript/TypeScript. - Auto-Copy: Seamlessly integrates with your system clipboard (macOS and Windows) so you can paste the import statement immediately.
- Cross-Platform: Uses POSIX pathing (
/) so your imports are always web-standard, regardless of your operating system.
📦 Installation
Install Path-Pilot globally via npm so you can use it from any directory on your machine.
npm install -g flyingant-path-pilot