# GitHub Library
A small library for personal use.
* Build the package:
```bash
npm run-script build
```
* Testing the package:
```bash
npm run-script test
```
## API
### Github.addComment( target, comment ) ⇒ `Undefined`
| Param | Type | Default | Description |
| --------- | --------- | ------------- | ----------------- |
| `target` | `String` | `document` | Selector object |
| `comment` | `Object` | | Comment data |
Adding a comment to a template.
Example:
```javascript
window.addEventListener("load", function () {
Github.getComments("octocat/Hello-World", 1,
function (error, comments) {
if (error) { throw new Error(error); }
// code
});
});
```
### Github.getComments( repos, issue, callback ) ⇒ `Array`
| Param | Type | Default | Description |
| ------------- | ------------- | --------- | ----------------- |
| `repos` | `String` | | Repository name |
| `issue` | `Number` | | Issue number |
| `callback` | `Function` | | Function handler |
Getting a list of comments.
Example:
```html
```
## License
[MIT](LICENSE.txt).
Copyright (c)
[Valentin Popov](https://valentineus.link/).