Skip to content
Snippets Groups Projects
Commit c90adbee authored by Yadd's avatar Yadd
Browse files

New upstream version 1.5.0+~1.5.1

parent 65d6fb82
No related branches found
No related tags found
No related merge requests found
MIT License
Copyright (c) Microsoft Corporation.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
# Installation
> `npm install --save @types/github-url-from-git`
# Summary
This package contains type definitions for node-github-url-from-git (https://github.com/tj/node-github-url-from-git).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/github-url-from-git.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/github-url-from-git/index.d.ts)
````ts
// Type definitions for node-github-url-from-git 1.5
// Project: https://github.com/tj/node-github-url-from-git
// Definitions by: Christian Murphy <https://github.com/ChristianMurphy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.0
declare namespace githubUrlFromGit {
interface githubUrlFromGitOptions {
/**
* additional URLs that should be treated as GitHub repos
*/
extraBaseUrls?: string[] | undefined;
}
/**
* Create a regular expression to parse GitHub URLs
*
* @param opts options for regular expression generator
*/
function re(opts?: githubUrlFromGitOptions): RegExp;
}
/**
* Normalize Git URLs into GitHub URLs
*
* @param url Git URL to process
* @param opts options for URL parser
* @returns GitHub URL
*/
declare function githubUrlFromGit(url: string, opts?: githubUrlFromGit.githubUrlFromGitOptions): string;
export = githubUrlFromGit;
````
### Additional Details
* Last updated: Thu, 08 Jul 2021 12:02:10 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by [Christian Murphy](https://github.com/ChristianMurphy).
// Type definitions for node-github-url-from-git 1.5
// Project: https://github.com/tj/node-github-url-from-git
// Definitions by: Christian Murphy <https://github.com/ChristianMurphy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.0
declare namespace githubUrlFromGit {
interface githubUrlFromGitOptions {
/**
* additional URLs that should be treated as GitHub repos
*/
extraBaseUrls?: string[] | undefined;
}
/**
* Create a regular expression to parse GitHub URLs
*
* @param opts options for regular expression generator
*/
function re(opts?: githubUrlFromGitOptions): RegExp;
}
/**
* Normalize Git URLs into GitHub URLs
*
* @param url Git URL to process
* @param opts options for URL parser
* @returns GitHub URL
*/
declare function githubUrlFromGit(url: string, opts?: githubUrlFromGit.githubUrlFromGitOptions): string;
export = githubUrlFromGit;
{
"name": "@types/github-url-from-git",
"version": "1.5.1",
"description": "TypeScript definitions for node-github-url-from-git",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/github-url-from-git",
"license": "MIT",
"contributors": [
{
"name": "Christian Murphy",
"url": "https://github.com/ChristianMurphy",
"githubUsername": "ChristianMurphy"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/github-url-from-git"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "c49368479529766cc6e1963cf395c83095c1a71e8c245f3b355e37aa54663885",
"typeScriptVersion": "3.6"
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment