You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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

to
1.0.4

17

index.js

@@ -8,2 +8,3 @@ /**

const logSymbols = require('log-symbols');
const nodePath = require('path');

@@ -18,3 +19,9 @@ const { toUnix } = require('upath');

*/
const darwinToWin32 = path => nodePath.win32.normalize(path);
const darwinToWin32 = path => {
if (!path) {
console.log(`${logSymbols.error} Please provide a valid path`);
return null;
}
return nodePath.win32.normalize(path);
};

@@ -27,3 +34,9 @@ /**

*/
const win32ToDarwin = path => toUnix(path);
const win32ToDarwin = path => {
if (!path) {
console.log(`${logSymbols.error} Please provide a valid path`);
return null;
}
return toUnix(path);
};

@@ -30,0 +43,0 @@ module.exports = {

3

package.json
{
"name": "cross-paths",
"version": "1.0.2",
"version": "1.0.4",
"description": "Converts paths from darwin to win32 platform and vice versa",

@@ -35,4 +35,5 @@ "repository": "https://github.com/msaaddev/cross-paths",

"dependencies": {
"log-symbols": "^4.1.0",
"upath": "^2.0.1"
}
}

@@ -13,2 +13,4 @@

![separator](assets/separate.jpg)
- **Simple**: extremely simple to use

@@ -19,4 +21,2 @@ - **Darwin to Win32**: Convert your darwin based operating system paths to Windows operating system

![separator](assets/separate.jpg)
<br>

@@ -23,0 +23,0 @@