Rename yellowlabtools.js to index.js and change the way to call it

This commit is contained in:
Gaël Métais
2015-01-06 22:50:32 +01:00
parent 079ec94197
commit 377dee7d83
5 changed files with 24 additions and 19 deletions
+4 -4
View File
@@ -2,7 +2,7 @@
var debug = require('debug')('ylt:cli');
var YellowLabTools = require('../lib/yellowlabtools');
var ylt = require('../lib/index');
// Check parameters
if (process.argv.length !== 3) {
@@ -16,10 +16,8 @@ var url = process.argv[2];
(function execute(url) {
'use strict';
var ylt = new YellowLabTools(url);
debug('Test launched...');
ylt(url).
ylt.
then(function(data) {
debug('Success');
@@ -32,4 +30,6 @@ var url = process.argv[2];
});
debug('Test launched...');
})(url);