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

slash

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slash - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

2

index.d.ts
/**
Convert Windows backslash paths to slash paths: `foo\\bar` ➔ `foo/bar`.
[Forward-slash paths can be used in Windows](http://superuser.com/a/176395/6877) as long as they're not extended-length paths and don't contain any non-ascii characters.
[Forward-slash paths can be used in Windows](http://superuser.com/a/176395/6877) as long as they're not extended-length paths.

@@ -6,0 +6,0 @@ @param path - A Windows backslash path.

export default function slash(path) {
const isExtendedLengthPath = /^\\\\\?\\/.test(path);
const isExtendedLengthPath = path.startsWith('\\\\?\\');

@@ -4,0 +4,0 @@ if (isExtendedLengthPath) {

{
"name": "slash",
"version": "5.0.0",
"version": "5.1.0",
"description": "Convert Windows backslash paths to slash paths",

@@ -35,6 +35,6 @@ "license": "MIT",

"devDependencies": {
"ava": "^4.3.3",
"tsd": "^0.24.1",
"xo": "^0.52.3"
"ava": "^5.2.0",
"tsd": "^0.28.1",
"xo": "^0.54.2"
}
}
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