I changed the module in nodejs, from commonjs to the ES6 module, which changes from require to import. but when I run npx sequelize db:mirgate has an error. error as in the picture.
I know there are lots of questions about unscrambling the words but this one is different. I'll explain after the sample code.
Sample Code
//Function
function unscramble($input){
$output = [];
$input = strtolower($input);
$words = file_get_contents('http://localhost/words.txt');
...