cross-paths
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "cross-paths", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Converts paths from darwin to win32 platform and vice versa", | ||
@@ -21,2 +21,4 @@ "repository": "https://github.com/msaaddev/cross-paths", | ||
"unix to windows path", | ||
"darwin to windows path", | ||
"windows to darwin path", | ||
"path converter", | ||
@@ -23,0 +25,0 @@ "convert paths", |
@@ -10,3 +10,3 @@ | ||
<p align="center"> | ||
A simple path conversion package to convert paths across different platform | ||
<b>A simple path conversion package to convert your paths across different platform</b> | ||
</p> | ||
@@ -25,3 +25,3 @@ | ||
## Install | ||
## Installation | ||
@@ -41,2 +41,3 @@ ```sh | ||
- win32ToDarwin() | ||
- path (required) | ||
@@ -52,7 +53,20 @@ <br> | ||
```js | ||
const { win32ToDarwin, darwinToWin32 } = require('cross-paths'); | ||
const { darwinToWin32 } = require('cross-paths'); | ||
const path = `/Users/saadirfan/GitHub` | ||
const win32Path = darwinToWin32(path); // new windows path | ||
``` | ||
- Convert win32 to darwin paths | ||
```js | ||
const { win32ToDarwin } = require('cross-paths'); | ||
const path = `C:\\Users\\Saad\\GitHub`; | ||
const darwinPath = win32ToDarwin(path); // new darwin path | ||
``` | ||
## 🔑 License & Conduct | ||
@@ -59,0 +73,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54973
72