Home

Awesome

<div align="center"> <h1>‼️ cross-paths</h1> <img src="https://img.shields.io/npm/v/cross-paths?color=2FD566" alt="version"> <img src="https://img.shields.io/npm/l/cross-paths?color=2FD566" alt="license"> <img src="https://img.shields.io/npm/dt/cross-paths?color=2FD566" alt="downloads"> </div> <p align="center"> <b>A simple path conversion package to convert your paths across different platform</b> </p>

separator

<br> <img src="./assets/suitcase.png" width="10%" />

Installation

# install the package
npm install cross-paths
<br> <img src="./assets/api.png" width="10%" />

API

<br> <img src="./assets/rocket.png" width="10%" />

Usage

const { darwinToWin32 } = require('cross-paths');

const path = `/Users/saadirfan/GitHub`

const win32Path = darwinToWin32(path); // new windows path
const { win32ToDarwin } = require('cross-paths');

const path = `C:\\Users\\Saad\\GitHub`;

const darwinPath = win32ToDarwin(path); // new darwin path

⚡️ Other Projects

I have curated a detailed list of all the open-source projects I have authored. Do take out a moment and take a look.

🔑 License & Conduct