Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cross-paths

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cross-paths - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc