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

Converts paths from darwin to win32 platform and vice versa

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

‼️ cross-paths

version license downloads

A simple path conversion package to convert your paths across different platform

  • Simple: extremely simple to use
  • Darwin to Win32: Convert your darwin based operating system paths to Windows operating system
  • Win32 to Darwin: Convert your Windows paths to darwin based operating system
  • MIT Licensed: Free to use for personal and commercial projects

separator


Installation

# install the package
npm install cross-paths

API

  • darwinToWin32()
  • win32ToDarwin()
  • path (required)

Usage

  • Convert darwin paths to win32
const { darwinToWin32 } = require('cross-paths');

const path = `/Users/saadirfan/GitHub`

const win32Path = darwinToWin32(path); // new windows path
  • Convert win32 to darwin paths
const { win32ToDarwin } = require('cross-paths');

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

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

🔑 License & Conduct

  • MIT © Saad Irfan
  • Code of Conduct

Keywords

FAQs

Package last updated on 10 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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