Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
manuhabitela committed Jan 17, 2016
0 parents commit ee3aa64
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
node_modules
3 changes: 3 additions & 0 deletions README.md
@@ -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/).
2 changes: 2 additions & 0 deletions bin/twitchflix
@@ -0,0 +1,2 @@
#!/usr/bin/env node
require('../index.js');
34 changes: 34 additions & 0 deletions index.js
@@ -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;
}
21 changes: 21 additions & 0 deletions package.json
@@ -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"
}
}

0 comments on commit ee3aa64

Please sign in to comment.