taisukef / grapheme-breaker-mjs

A JS implementation of the Unicode 13.0.0 grapheme cluster breaking algorithm (UAX #29)
https://taisukef.github.io/grapheme-breaker-mjs/
MIT License
9 stars 1 forks source link

Why mjs? #3

Open cinan opened 3 years ago

cinan commented 3 years ago

Why do you use .mjs instead of .js? It complicates imports in node.js applications and tests (I'm using mocha).

yumetodo commented 3 years ago

As far as I know, mocha 7.1.0 or later supports mjs. https://github.com/mochajs/mocha/issues/3006

taisukef commented 3 years ago

Because I want to use this package both the client and the server. "mjs" is a extension for JavaScript ES module, and runs there and Deno!