Export modules in typescript

This commit is contained in:
Christer Warén
2023-06-04 04:29:42 +03:00
parent 56f0ab5a40
commit 9303c4fcc9
38 changed files with 38 additions and 38 deletions

View File

@ -1,4 +1,4 @@
module.exports = function logger(area, text){
export default function logger(area, text){
let date = new Date();
console.log('[' + area + '] ' + date.toISOString());
if(text) console.log(text + '\n');