|
|
5 dni temu | |
|---|---|---|
| .. | ||
| lib | 5 dni temu | |
| LICENSE | 5 dni temu | |
| README.md | 5 dni temu | |
| package.json | 5 dni temu | |
A low level git url parser.
# Using npm
npm install --save git-up
# Using yarn
yarn add git-up
// Dependencies
var gitUp = require("git-up");
console.log(gitUp("git@github.com:IonicaBizau/node-parse-url.git"));
// => {
// protocols: []
// , port: null
// , resource: "github.com"
// , user: "git"
// , pathname: "/IonicaBizau/node-parse-url.git"
// , hash: ""
// , search: ""
// , href: "git@github.com:IonicaBizau/node-parse-url.git"
// , protocol: "ssh"
// }
console.log(gitUp("https://github.com/IonicaBizau/node-parse-url.git"));
// => {
// protocols: [ "https" ]
// , port: null
// , resource: "github.com"
// , user: ""
// , pathname: "/IonicaBizau/node-parse-url.git"
// , hash: ""
// , search: ""
// , href: "https://github.com/IonicaBizau/node-parse-url.git"
// , protocol: "https"
// }
There are few ways to get help:
For bug reports and feature requests, open issues. :bug:
For direct and quick help, you can use Codementor. :rocket:
gitUp(input)Parses the input url.
input: The input url.protocols (Array): An array with the url protocols (usually it has one element).port (null|Number): The domain port.resource (String): The url domain (including subdomains).user (String): The authentication user (usually for ssh urls).pathname (String): The url pathname.hash (String): The url hash.search (String): The url querystring value.href (String): The input url.protocol (String): The git url protocol.token (String): The oauth token (could appear in the https urls).Have an idea? Found a bug? See how to contribute.
I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).
However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:
Bitcoin—You can send me bitcoins at this address (or scanning the code below): 1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6
Thanks! :heart:
If you are using this library in one of your projects, add it in this list. :sparkles:
codelofts-git-url-parse—A high level git url parser for common git providers.front-end-styleguide-cli (by Fynn Becker)—Provides access to the global CLI interface for the Front End Styleguidegit-url-parse—A high level git url parser for common git providers.miguelcostero-ng2-toasty (by Sergey Akopkokhyants)—Angular2 Toasty component shows growl-style alerts and messages for your web appship-release—Publish new versions on GitHub and npm with ease.