https://github.com/axetroy/git-url-parse
A high level git url parser for common git providers.
https://github.com/axetroy/git-url-parse
dart git github parse url
Last synced: about 2 months ago
JSON representation
A high level git url parser for common git providers.
- Host: GitHub
- URL: https://github.com/axetroy/git-url-parse
- Owner: axetroy
- License: mit
- Created: 2017-03-02T09:36:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-03-11T03:57:09.000Z (over 6 years ago)
- Last Synced: 2025-02-15T05:15:25.742Z (over 1 year ago)
- Topics: dart, git, github, parse, url
- Language: Dart
- Homepage: https://pub.dartlang.org/packages/git_url_parse
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# git-url-parse
[](https://travis-ci.org/axetroy/git-url-parse)


A high level git url parser for common git providers.
## Usage
```dart
import 'package:git_url_parse/git-url-parse.dart' show gitUrlParse;
void main(){
Map gitUrlInfo = gitUrlParse('https+git@github.com:gpmer/gpm.js.git');
print(urlInfo);
}
```
```
# print out
{
"href": "https+git@github.com:gpmer/gpm.js.git",
"protocols": [
"https",
"git"
],
"protocol": "https",
"port": 443,
"host": "github.com",
"user": "gpmer",
"password": "",
"origin": "https+git@github.com",
"path": "/gpm.js.git",
"query": "",
"hash": "",
"source": "github.com",
"name": "gpm.js",
"owner": "gpmer",
"full_name": "gpmer/gpm.js"
}
```
## Test
```bash
./TEST
```
## Contribute
```bash
git clone https://github.com/axetroy/git-url-parse.git
cd ./git-url-parse
pub get
./TEST
```
## LICENSE
The [MIT License](https://github.com/axetroy/git-url-parse/blob/master/LICENSE)