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'.`);