Skip to content

Commit f0884e6

Browse files
committed
Updated docs
1 parent eaa9253 commit f0884e6

File tree

4 files changed

+40
-7
lines changed

4 files changed

+40
-7
lines changed

DOCUMENTATION.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ Parses a Git url.
2424
- `source` (String): The Git provider (e.g. `"github.com"`).
2525
- `owner` (String): The repository owner.
2626
- `name` (String): The repository name.
27+
- `ref` (String): The repository ref (e.g., "master" or "dev").
28+
- `filepath` (String): A filepath relative to the repository root.
29+
- `filepathtype` (String): The type of filepath in the url ("blob" or "tree").
2730
- `full_name` (String): The owner and name values in the `owner/name` format.
2831
- `toString` (Function): A function to stringify the parsed url into another url type.
2932
- `organization` (String): The organization the owner belongs to. This is CloudForge specific.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015-17 Ionică Bizău <[email protected]> (https://ionicabizau.net)
3+
Copyright (c) 2015-18 Ionică Bizău <[email protected]> (https://ionicabizau.net)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,27 @@ console.log(GitUrlParse("https://github.com/IonicaBizau/node-git-url-parse.git")
6464
// , owner: "IonicaBizau"
6565
// }
6666

67+
console.log(GitUrlParse("https://github.com/IonicaBizau/git-url-parse/blob/master/test/index.js"));
68+
// { protocols: [ 'https' ],
69+
// protocol: 'https',
70+
// port: null,
71+
// resource: 'github.com',
72+
// user: '',
73+
// pathname: '/IonicaBizau/git-url-parse/blob/master/test/index.js',
74+
// hash: '',
75+
// search: '',
76+
// href: 'https://github.com/IonicaBizau/git-url-parse/blob/master/test/index.js',
77+
// token: '',
78+
// toString: [Function],
79+
// source: 'github.com',
80+
// name: 'git-url-parse',
81+
// owner: 'IonicaBizau',
82+
// organization: '',
83+
// ref: 'master',
84+
// filepathtype: 'blob',
85+
// filepath: 'test/index.js',
86+
// full_name: 'IonicaBizau/git-url-parse' }
87+
6788
console.log(GitUrlParse("https://github.com/IonicaBizau/node-git-url-parse.git").toString("ssh"));
6889
// => "[email protected]:IonicaBizau/node-git-url-parse.git"
6990

@@ -109,6 +130,9 @@ Parses a Git url.
109130
- `source` (String): The Git provider (e.g. `"github.com"`).
110131
- `owner` (String): The repository owner.
111132
- `name` (String): The repository name.
133+
- `ref` (String): The repository ref (e.g., "master" or "dev").
134+
- `filepath` (String): A filepath relative to the repository root.
135+
- `filepathtype` (String): The type of filepath in the url ("blob" or "tree").
112136
- `full_name` (String): The owner and name values in the `owner/name` format.
113137
- `toString` (Function): A function to stringify the parsed url into another url type.
114138
- `organization` (String): The organization the owner belongs to. This is CloudForge specific.
@@ -137,6 +161,7 @@ this takes time. You can integrate and use these projects in your applications *
137161

138162
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:
139163

164+
140165
- Starring and sharing the projects you like :rocket:
141166
- [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book:
142167
- [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:
@@ -145,6 +170,7 @@ However, if you get some profit from this or just want to encourage me to contin
145170

146171
![](https://i.imgur.com/z6OQI95.png)
147172

173+
148174
Thanks! :heart:
149175

150176

@@ -171,6 +197,7 @@ If you are using this library in one of your projects, add it in this list. :spa
171197
- [`generator-clearphp`](https://github.com/jkphl/generator-clearphp#readme) (by Joschi Kuphal)—Scaffold for Composer based PHP projects with a lot of integrations, advocating the use of The Clear Architecture (https://jkphl.is/articles/clear-architecture-php)
172198
- [`generator-nm-bti`](https://gitlab.com/beneaththeink/generator-nm-bti#README) (by Tyler Johnson)—Scaffold out a node module, Beneath the Ink style.
173199
- [`generator-openapi-repo`](https://github.com/rebilly/generator-openapi-repo#readme) (by Roman Hotsiy)—Yeoman generator for OpenAPI(fka Swagger) repo to help you share spec for your API
200+
- [`git-cherry-fix`](https://npmjs.com/package/git-cherry-fix)—> helps you get your fixes to another branch by cherry-picking them
174201
- [`git-issues`](https://github.com/softwarescales/git-issues) (by Gabriel Petrovay)—Git issues extension to list issues of a Git project
175202
- [`git-lab-cli`](https://npmjs.com/package/git-lab-cli)—gitlab-cli ==================
176203
- [`git-signed`](https://github.com/Wizcorp/git-signed#readme) (by Marc Trudel)—git commit signing made easy (and enforceable)
@@ -180,8 +207,10 @@ If you are using this library in one of your projects, add it in this list. :spa
180207
- [`gitbook-start-iaas-ull-es-alex-moi`](https://github.com/ULL-ESIT-SYTW-1617/gitbook-start-iaas-ull-es-alex-moi.git#readme) (by Moises Yanes Carballo)—Plugin deploy maquina iaas-ull-es
181208
- [`gitbook-start-iaas-ull-es-merquililycony`](https://github.com/ULL-ESIT-SYTW-1617/gitbook-start-iaas-ull-es-merquililycony#readme) (by Constanza León, Merquis Cruz, Liliana Galiano)—*El objetivo de esta práctica es extender el package NodeJS publicado en npm en una práctica anterior con una nueva* *funcionalidad que permita que los usuarios realizar un despliegue automatico en el servidor de IAAS*
182209
- [`gitbook-start-plugin-iaas-ull-es-noejaco2017`](http://creacion-de-paquetes-y-modulos-en-nodejs-noejaco2017/README.md) (by alu0100622492)—Despliegue plugin Iaas
210+
- [`gitc`](https://github.com/cezarlz/gitc#readme) (by Cezar Luiz)—Manage your pull requests and issues from your command line.
183211
- [`github-publish-npm`](https://github.com/ofersadgat/github-publish-npm) (by Ofer Sadgat)—This will upload publish npm assets to the GitHub Releases API.
184212
- [`gitlab-ci-variables-setter-cli`](https://github.com/temando/gitlab-ci-variables-cli#readme) (by Khoa Tran)—CLI tool to allow setting multiple pipeline variables on Gitlab CI.
213+
- [`gitline`](https://github.com/cezarlz/gitline#readme) (by Cezar Luiz)—Manage your pull requests and issues from your command line.
185214
- [`gtni`](https://nmrony.github.io/gtni) (by Nur Mohammed Rony)—Install your all npm dependencies recursively with gtni while you are doing git clone, fetch or pull
186215
- [`lcov-server`](https://github.com/gabrielcsapo/lcov-server#readme) (by Gabriel J. Csapo)—🎯 A simple lcov server & cli parser
187216
- [`moto-connector`](https://npmjs.com/package/moto-connector) (by limingv5)—FEB平台SDK
@@ -200,14 +229,15 @@ If you are using this library in one of your projects, add it in this list. :spa
200229

201230
[MIT][license] © [Ionică Bizău][website]
202231

203-
[badge_patreon]: http://ionicabizau.github.io/badges/patreon.svg
204-
[badge_amazon]: http://ionicabizau.github.io/badges/amazon.svg
205-
[badge_paypal]: http://ionicabizau.github.io/badges/paypal.svg
206-
[badge_paypal_donate]: http://ionicabizau.github.io/badges/paypal_donate.svg
232+
233+
[badge_patreon]: https://ionicabizau.github.io/badges/patreon.svg
234+
[badge_amazon]: https://ionicabizau.github.io/badges/amazon.svg
235+
[badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg
236+
[badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg
237+
207238
[patreon]: https://www.patreon.com/ionicabizau
208239
[amazon]: http://amzn.eu/hRo9sIZ
209240
[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW
210-
[donate-now]: http://i.imgur.com/6cMbHOC.png
211241

212242
[license]: http://showalicense.com/?fullname=Ionic%C4%83%20Biz%C4%83u%20%3Cbizauionica%40gmail.com%3E%20(https%3A%2F%2Fionicabizau.net)&year=2015#license-mit
213243
[website]: https://ionicabizau.net

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@
5252
"bloggify.json",
5353
"bloggify/"
5454
]
55-
}
55+
}

0 commit comments

Comments
 (0)