mnater / Hyphenopoly

Hyphenation for node and Polyfill for client-side hyphenation.
http://mnater.github.io/Hyphenopoly/
MIT License
689 stars 45 forks source link

Update the node example - the current one just doesn't work #208

Closed kuba-orlik closed 2 months ago

mnater commented 2 months ago

Hi Many thanks for your commitment. The file /examples/example.js works well, maybe we should use that in README to have more consistency.

BTW: Hyphenopoly.config only returns a promise if exactly one language is required, otherwise it returns a map of promises (see https://mnater.github.io/Hyphenopoly/Module.html#usage). However, a function that returns different types depending on the inputs is not a good idea - I don't know what I had in mind.

mnater commented 2 months ago

I think there's no need for this anymore. Thanks again.