Socket
Socket
Sign inDemoInstall

parse-path

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-path - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

6

package.json
{
"name": "parse-path",
"version": "3.0.0",
"description": "Parse paths (local paths, urls: /ssh/git/etc)",
"version": "3.0.1",
"description": "Parse paths (local paths, urls: ssh/git/etc)",
"main": "lib/index.js",

@@ -50,2 +50,2 @@ "directories": {

]
}
}

@@ -7,3 +7,3 @@ <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->

> Parse paths (local paths, urls: /ssh/git/etc)
> Parse paths (local paths, urls: ssh/git/etc)

@@ -23,5 +23,5 @@ ## :cloud: Installation

// Dependencies
const parseUrl = require("parse-path");
const parsePath = require("parse-path")
console.log(parseUrl("http://ionicabizau.net/blog"));
console.log(parsePath("http://ionicabizau.net/blog"))
// { protocols: [ 'http' ],

@@ -37,3 +37,3 @@ // protocol: 'http',

console.log(parseUrl("http://domain.com/path/name?foo=bar&bar=42#some-hash"));
console.log(parsePath("http://domain.com/path/name?foo=bar&bar=42#some-hash"))
// { protocols: [ 'http' ],

@@ -49,3 +49,3 @@ // protocol: 'http',

console.log(parseUrl("git+ssh://git@host.xz/path/name.git"));
console.log(parsePath("git+ssh://git@host.xz/path/name.git"))
// { protocols: [ 'git', 'ssh' ],

@@ -61,3 +61,3 @@ // protocol: 'git',

console.log(parseUrl("git@github.com:IonicaBizau/git-stats.git"));
console.log(parsePath("git@github.com:IonicaBizau/git-stats.git"))
// { protocols: [],

@@ -64,0 +64,0 @@ // protocol: 'ssh',

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