mjs -> cjs

This commit is contained in:
Isaac
2022-05-05 21:29:28 +01:00
parent 9cdd3f92e5
commit cbfbf05e8c
9 changed files with 72 additions and 70 deletions

View File

@@ -1,8 +1,8 @@
import { randomBytes } from 'crypto';
import { short } from 'leeks.js';
const { randomBytes } = require('crypto');
const { short } = require('leeks.js');
console.log(short(
'Set the "DB_ENCRYPTION_KEY" environment variable to: \n&1&!f' +
randomBytes(24).toString('hex') +
'&r\n\n&0&!e WARNING &r &e&lIf you lose the encryption key, most of the data in the database will become unreadable, requiring a new key and a full reset.'
'&r\n\n&0&!e WARNING &r &e&lIf you lose the encryption key, most of the data in the database will become unreadable, requiring a new key and a full reset.',
));