GitbookIO / hunspell-spellchecker

Parse and use Hunspell dictionaries in Javascript
Apache License 2.0
77 stars 18 forks source link

Example to use the library in a browser #8

Open moroshko opened 8 years ago

moroshko commented 8 years ago

I noticed in the README that you use fs.readFileSync() which is a Node function.

How would that work in a browser?

Do you have a working example that can run in a browser?

asifm commented 7 years ago

Did you find a solution to your problem? I'm looking for a way to use hunspell in the browser, but can't seem to find anything.

cappelleMedia commented 7 years ago

I'm also wondering if it is possible/ what sollution was found for this

vahaknp commented 4 years ago

bump

Throvn commented 1 month ago

I noticed just now that the issue is pretty old.

Because of the same problem I forked it. I cut out all the clutter which is not needed and built a minimal example on top of it.

The example also uses a WebWorker in case you need it.

https://github.com/Throvn/hunspell-spellchecker/tree/master