Skip to content

Commit

Permalink
Add exit message
Browse files Browse the repository at this point in the history
  • Loading branch information
schw4rzlicht committed Jun 7, 2020
1 parent 7c2dd45 commit 5a773ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ const semverGt = require('semver/functions/gt')
const packageInformation = require("../../package.json");

export async function main() {

process.on("SIGINT", () => {
console.log(chalk`\n{bold Thank you for using twitch2ma} ❤️`);
process.exit(0);
});

return require("libnpm")
.manifest(`${packageInformation.name}@latest`)
.then(notifyUpdate)
Expand Down

0 comments on commit 5a773ea

Please sign in to comment.