diff --git a/dist/index.js b/dist/index.js index ba61398..3272908 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,16 +1,18 @@ "use strict"; /// -var ora = require("ora"); -var earlyOra; +var colors = require("colors"); +var readline = require("readline"); +var rl = readline.createInterface({ + input: process.stdin, + output: process.stdout +}); exports.start = function (moduleStringArg) { - earlyOra = ora({ - text: "Loading " + moduleStringArg.green, - spinner: "bouncingBar" - }); - earlyOra.start(); + rl.write('Delete me!'); + setTimeout(function () { + rl.write(null, { ctrl: true, name: 'u' }); + }, 1000); }; exports.stop = function () { - earlyOra.stop(); }; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSw2Q0FBNkM7QUFDN0MsSUFBSSxHQUFHLEdBQUcsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ3pCLElBQUksUUFBUSxDQUFDO0FBRUYsYUFBSyxHQUFHLFVBQVMsZUFBc0I7SUFDOUMsUUFBUSxHQUFHLEdBQUcsQ0FBQztRQUNYLElBQUksRUFBQyxVQUFVLEdBQUcsZUFBZSxDQUFDLEtBQUs7UUFDdkMsT0FBTyxFQUFDLGFBQWE7S0FDeEIsQ0FBQyxDQUFDO0lBQ0gsUUFBUSxDQUFDLEtBQUssRUFBRSxDQUFDO0FBQ3JCLENBQUMsQ0FBQztBQUVTLFlBQUksR0FBRztJQUNkLFFBQVEsQ0FBQyxJQUFJLEVBQUUsQ0FBQztBQUNwQixDQUFDLENBQUMiLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLy8gPHJlZmVyZW5jZSBwYXRoPVwiLi90eXBpbmdzL2luZGV4LmQudHNcIiAvPlxyXG5sZXQgb3JhID0gcmVxdWlyZShcIm9yYVwiKTtcclxubGV0IGVhcmx5T3JhO1xyXG5cclxuZXhwb3J0IGxldCBzdGFydCA9I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RVMsWUFBSSxHQUFHO0FBRWxCLENBQUMsQ0FBQyIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vLyA8cmVmZXJlbmNlIHBhdGg9XCIuL3R5cGluZ3MvaW5kZXguZC50c1wiIC8+XHJcbmxldCBjb2xvcnMgPSByZXF1aXJlKFwiY29sb3JzXCIpO1xyXG5sZXQgcmVhZGxpbmUgPSByZXF1aXJlKFwicmVhZGxpbmVcIik7XHJcblxyXG5jb25zdCBybCA9IHJlYWRsaW5lLmNyZWF0ZUludGVyZmFjZSh7XHJcbiAgaW5wdXQ6IHByb2Nlc3Muc3RkaW4sXHJcbiAgb3V0cHV0OiBwcm9jZXNzLnN0ZG91dFxyXG59KTtcclxuXHJcbmV4cG9ydCBsZXQgc3RhcnQgPSBmdW5jdGlvbihtb2R1bGVTdHJpbmdBcmc6c3RyaW5nKXtcclxuICAgIHJsLndyaXRlKCdEZWxldGUgbWUhJyk7XHJcbiAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uKCl7XHJcbiAgICAgICAgcmwud3JpdGUobnVsbCwge2N0cmw6IHRydWUsIG5hbWU6ICd1J30pO1xyXG4gICAgfSwxMDAwKTtcclxufTtcclxuXHJcbmV4cG9ydCBsZXQgc3RvcCA9IGZ1bmN0aW9uKCl7XHJcbiAgICBcclxufTtcclxuXHJcbiJdfQ== diff --git a/package.json b/package.json index 2fe12bc..311aac7 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,6 @@ "npmts": "^5.1.8" }, "dependencies": { - "colors": "^1.1.2", - "ora": "^0.2.3" + "colors": "^1.1.2" } } diff --git a/ts/index.ts b/ts/index.ts index a52722a..8f9d0eb 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1,17 +1,20 @@ /// let colors = require("colors"); -let ora = require("ora"); -let earlyOra; +let readline = require("readline"); + +const rl = readline.createInterface({ + input: process.stdin, + output: process.stdout +}); export let start = function(moduleStringArg:string){ - earlyOra = ora({ - text:"Loading " + moduleStringArg.green, - spinner:"bouncingBar" - }); - earlyOra.start(); + rl.write('Delete me!'); + setTimeout(function(){ + rl.write(null, {ctrl: true, name: 'u'}); + },1000); }; export let stop = function(){ - earlyOra.stop(); + };