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

@stdlib/utils-convert-path

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stdlib/utils-convert-path - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

lib/convert_path.js

@@ -50,3 +50,3 @@ /**

* var p = convertPath( '/c/foo/bar/beep.c', 'win32' );
* // returns 'c:\\foo\\bar\\beep.c'
* // returns 'c:\foo\bar\beep.c'
*

@@ -53,0 +53,0 @@ * @example

@@ -30,3 +30,3 @@ /**

* var p = convertPath( '/c/foo/bar/beep.c', 'win32' );
* // returns 'c:\\foo\\bar\\beep.c'
* // returns 'c:\foo\bar\beep.c'
*

@@ -33,0 +33,0 @@ * p = convertPath( '/c/foo/bar/beep.c', 'mixed' );

{
"name": "@stdlib/utils-convert-path",
"version": "0.0.4",
"version": "0.0.5",
"description": "Convert between POSIX and Windows paths.",

@@ -44,3 +44,3 @@ "license": "Apache-2.0",

"@stdlib/assert-is-string": "^0.0.x",
"@stdlib/cli": "^0.0.x",
"@stdlib/cli-ctor": "^0.0.x",
"@stdlib/fs-read-file": "^0.0.x",

@@ -47,0 +47,0 @@ "@stdlib/process-read-stdin": "^0.0.x",

@@ -66,3 +66,3 @@ <!--

- **win32**: Windows path convention; e.g., \`C:\\foo\\bar'.
- **win32**: Windows path convention; e.g., `C:\\foo\\bar`.
- **mixed**: mixed path convention (Windows volume convention and POSIX path separator); e.g., `C:/foo/bar`.

@@ -105,3 +105,3 @@ - **posix**: POSIX path convention; e.g., `/c/foo/bar`.

p2 = convertPath( p1, 'win32' );
// returns 'c:\\foo\\bar\\beep.c'
// returns 'c:\foo\bar\beep.c'

@@ -118,3 +118,3 @@ p1 = '/c/foo/bar/beep.c';

p2 = convertPath( p1, 'win32' );
// returns 'C:\\\\foo\\bar\\beep.c'
// returns 'C:\\foo\bar\beep.c'

@@ -121,0 +121,0 @@ p1 = 'C:\\\\foo\\bar\\beep.c';

Sorry, the diff of this file is not supported yet

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