migrate to esm structure

This commit is contained in:
TheBeastLT
2023-10-31 14:21:04 +02:00
parent c7fa8e9c50
commit 86cf502725
30 changed files with 242 additions and 311 deletions

View File

@@ -1,8 +1,6 @@
const UserAgent = require('user-agents');
import UserAgent from 'user-agents';
const userAgent = new UserAgent();
function getRandomUserAgent() {
export function getRandomUserAgent() {
return userAgent.random().toString();
}
module.exports = { getRandomUserAgent };