Socket
Socket
Sign inDemoInstall

path-is-absolute

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 2.0.0

2

index.js

@@ -9,3 +9,3 @@ 'use strict';

// https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56
var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
var splitDeviceRe = /^([a-zA-Z]:|[\\/]{2}[^\\/]+[\\/]+[^\\/]+)?([\\/])?([\s\S]*?)$/;
var result = splitDeviceRe.exec(path);

@@ -12,0 +12,0 @@ var device = result[1] || '';

{
"name": "path-is-absolute",
"version": "1.0.1",
"version": "2.0.0",
"description": "Node.js 0.12 path.isAbsolute() ponyfill",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -0,1 +1,7 @@

# Deprecated
This package is no longer relevant as Node.js 0.12 is unmaintained.
---
# path-is-absolute [![Build Status](https://travis-ci.org/sindresorhus/path-is-absolute.svg?branch=master)](https://travis-ci.org/sindresorhus/path-is-absolute)

@@ -2,0 +8,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc