Node: Migrate to ES Modules

This commit is contained in:
Cohee
2024-10-10 22:37:22 +03:00
parent 5a52196331
commit d52b4fbbde
74 changed files with 1291 additions and 1140 deletions

View File

@@ -1,7 +1,7 @@
const yaml = require('yaml');
const fs = require('fs');
const storage = require('node-persist');
const users = require('./src/users');
import * as fs from 'node:fs';
import yaml from 'yaml';
import storage from 'node-persist';
import * as users from './src/users';
const userAccount = process.argv[2];
const userPassword = process.argv[3];