chore: debug

This commit is contained in:
Cory Dransfeldt 2024-04-03 20:29:30 -07:00
parent d5fc9d01f8
commit c19db0238e
No known key found for this signature in database

View file

@ -1,20 +1,7 @@
import fs from 'fs'
import { readFile } from 'fs/promises'
export default async function () {
let window;
fs.readFileSync('./src/_data/json/scrobbles-window.json', (error, data) => {
if (error) {
console.log(error);
return;
}
window = JSON.parse(data)
let window = JSON.parse(await readFile('./src/_data/json/scrobbles-window.json', 'utf8'));
console.log(window)
})
return window
// fs.readdir('./src/_data/json/', (err, files) => {
// files.forEach(file => {
// console.log(file);
// });
// });
}