Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ee3aa64
Showing
5 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# `twitchflix` | ||
|
||
`twitchflix` is a command-line application to look for popular streams from twitch and watch them instantly thanks to [livestreamer](http://docs.livestreamer.io/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env node | ||
require('../index.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
var view = require('cli-view-utils'); | ||
var minimist = require('minimist'); | ||
|
||
var args = normalizeArgs(); | ||
|
||
if (args.version) { | ||
return view.renderMessage(version()); | ||
} | ||
|
||
if (args.help) { | ||
return view.renderMessage(help()); | ||
} | ||
|
||
return start(args); | ||
|
||
function version() { | ||
return "twitchflix version " + require('./package.json').version; | ||
} | ||
|
||
function help() { | ||
return [].join('\n'); | ||
} | ||
|
||
function start(options) { | ||
} | ||
|
||
function normalizeArgs() { | ||
var args = minimist(process.argv.slice(2), { | ||
alias: { c: 'count', g: 'game' }, | ||
default: { count: 20 }, | ||
'--': true | ||
}); | ||
return args; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "twitchflix", | ||
"version": "0.0.1", | ||
"description": "A cli app to look for twitch channels and watch them in your favorite player", | ||
"main": "index.js", | ||
"repository": "Leimi/twitchflix", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "Emmanuel Pelletier", | ||
"license": "MIT", | ||
"bin": { | ||
"twitchflix": "bin/twitchflix" | ||
}, | ||
"dependencies": { | ||
"lodash.defaults": "^3.1.2", | ||
"minimist": "^1.1.2", | ||
"q": "^1.4.1", | ||
"cli-view-utils": "Leimi/cli-view-utils" | ||
} | ||
} |