Skip to content

Commit

Permalink
Change doc
Browse files Browse the repository at this point in the history
  • Loading branch information
tnovas committed Oct 18, 2017
1 parent a1f52af commit 70663c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ node --version
```

## Installation:
Add the latest version of `youtube` to your package.json:
Add the latest version of `youtube-streamer` to your package.json:
```
npm install youtube --save
npm install youtube-streamer --save
```

## Usage:
```js
let youtubeApi = require('youtube');
let youtubeApi = require('youtube-streamer');
```

Give the credentials of the youtube to the constructor
Expand Down Expand Up @@ -100,7 +100,7 @@ If you need to save credentials, you have to call `getCredentials` and you will
### Promises
If you add `then` to call you will take the success of response and if you add `catch` you will take the error of response.
```js
youtube.getDonations(10)
youtube.getChannel()
.then((res) => console.log(res)))
.catch((err) => console.log(err)))
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "youtube",
"name": "youtube-streamer",
"author": "Tomas Novas",
"url": "https://github.com/tnovas/youtube",
"repository": {
Expand Down

0 comments on commit 70663c3

Please sign in to comment.