mourner / flatqueue

A very fast and simple JavaScript priority queue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for Node.js require

nermin99 opened this issue · comments

Add support for being able to use require instead of import.

This is useful when working with Node.js and you for some reason can't use ES modules

I intentionally want to keep this module ESM-only. As a workaround, you can use ESM within CommonJS modules with await import(...).