https://github.com/scrum/git-get-repos-id
A tiny helper to get github repository `id`
https://github.com/scrum/git-get-repos-id
Last synced: about 1 year ago
JSON representation
A tiny helper to get github repository `id`
- Host: GitHub
- URL: https://github.com/scrum/git-get-repos-id
- Owner: Scrum
- Created: 2019-08-08T11:16:22.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T17:34:45.000Z (over 3 years ago)
- Last Synced: 2025-02-21T09:57:36.911Z (over 1 year ago)
- Language: TypeScript
- Size: 988 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# git-get-repos-id
> A tiny helper to get github repository `id`
[](https://travis-ci.org/Scrum/git-get-repos-id)[](https://coveralls.io/r/Scrum/git-get-repos-id)
## Install
```bash
npm install git-get-repos-id
```
## Usage
```js
import gitGetReposId from 'git-get-repos-id';
gitGetReposId({owner: 'scrum', repo: 'slims', token: '59bd8d5eb1980b7f926f2d106f4f2f0312fdf97f'});
//=> MDEwOlJlcG9zaXRvcnkxOTc3MjY4NTY=
```
## API
### gitGetReposId({owner, repo, token})
- **owner** - Github owner or organization name.
- **repo** - Repository name.
- **token** - You Github Personal Token. Grab it from your [Developer settings](https://github.com/settings/developers)