Skip to content

Commit

Permalink
Opens the youtube video for despacito
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanph committed Jun 9, 2017
0 parents commit be1324f
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock.json
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
For when you need your daily dose of DES-PA-CITO.

This command opens the youtube video for Despacito by Luis Fonsi ft. Daddy Yankee

## Install

```
$ npm install -g despacito
```

## Usage

```
$ despacito
```
2 changes: 2 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
require('./index.js');
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';
const opn = require('opn');

const DESPACITO_YOUTUBE = 'https://www.youtube.com/watch?v=kJQP7kiw5Fk';
opn(DESPACITO_YOUTUBE);
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "despacito",
"version": "1.0.0",
"description": "",
"main": "index.js",
"bin": {
"despacito": "cli.js"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"opn": "^5.0.0"
}
}

0 comments on commit be1324f

Please sign in to comment.