monperrus / crawler-user-agents

Syntactic patterns of HTTP user-agents used by bots / robots / crawlers / scrapers / spiders. pull-request welcome :star:
MIT License
1.19k stars 253 forks source link

Consider adding `.mjs` export #370

Open DamianGlowala opened 1 month ago

DamianGlowala commented 1 month ago

Instead of having to import JSON file with import type assertion (which unexpectedly breaks stuff):

import crawlers from 'crawler-user-agents' with { type: 'json' }

... could we have an .mjs entry point for JavaScript/TypeScript users?

monperrus commented 1 month ago

why not, esp if it's backward compatible. pull-request welcome!