From 702149024cc1ce8ec49b774781dc019cbb88708e Mon Sep 17 00:00:00 2001 From: tycrek Date: Wed, 7 Apr 2021 11:19:01 -0600 Subject: [PATCH] added token generator --- generators/token.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 generators/token.js diff --git a/generators/token.js b/generators/token.js new file mode 100644 index 0000000..a7f7c64 --- /dev/null +++ b/generators/token.js @@ -0,0 +1,5 @@ +const uuid = require('uuid').v4; +module.exports = () => uuid().replace(/-/g, ''); + +// If directly called on the command line, generate a new token +require.main === module && console.log(`Here is your new token:\n\n ${module.exports()}\n\nThis token has been automatically applied and is ready for use. You do not need to restart 'ass'.`);