Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2014-08-15 08:31:50 +0400
committerFeross Aboukhadijeh <feross@feross.org>2014-08-15 08:31:50 +0400
commit759f7a05cef4de1c7f0d7071d61941146d544683 (patch)
treec5dac7361330d583dd66c570f148ce92bf42cb71 /bin
parent813108edb5fbf26a96dd6a23760dfa840f555eb8 (diff)
remove chalk dep
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cmd.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index 19170da..2f3a7d0 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -1,7 +1,6 @@
#!/usr/bin/env node
var airplay = require('airplay-js')
-var chalk = require('chalk')
var clivas = require('clivas')
var cp = require('child_process')
var fs = require('fs')
@@ -16,7 +15,7 @@ function usage (noLogo) {
if (!noLogo) {
var logo = fs.readFileSync(path.join(__dirname, 'ascii-logo.txt'), 'utf8')
logo.split('\n').forEach(function (line) {
- console.log(chalk.bold(line.substring(0, 20) + chalk.red(line.substring(20))))
+ clivas.line('{bold:' + line.substring(0, 20) + '}{red:' + line.substring(20) + '}')
})
}
console.log('Usage: webtorrent [OPTIONS] <torrent_id>')