parse-path
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"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', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10193