Added readline function, started work on shops, added some comments, made main menu and a bit of the start.

This commit is contained in:
Raktbastr 2025-02-25 10:04:03 -06:00
parent 455a867719
commit e413a5dea4
17 changed files with 3889 additions and 17 deletions

24
files/node_modules/readline-sync/lib/encrypt.js generated vendored Normal file
View file

@ -0,0 +1,24 @@
/*
* readlineSync
* https://github.com/anseki/readline-sync
*
* Copyright (c) 2019 anseki
* Licensed under the MIT license.
*/
var cipher = require('crypto').createCipher(
process.argv[2] /*algorithm*/, process.argv[3] /*password*/),
stdin = process.stdin,
stdout = process.stdout,
crypted = '';
stdin.resume();
stdin.setEncoding('utf8');
stdin.on('data', function(d) {
crypted += cipher.update(d, 'utf8', 'hex');
});
stdin.on('end', function() {
stdout.write(crypted + cipher.final('hex'), 'binary', function() {
process.exit(0);
});
});