web-mech / badwords

A javascript filter for badwords
MIT License
631 stars 324 forks source link

Move to ES Modules #147

Open reesericci opened 2 years ago

reesericci commented 2 years ago

Adds support for use as an ESM module with the following syntax:

import Filter from 'badwords'

TamimiGitHub commented 3 months ago

Any update on this?

reesericci commented 3 months ago

As far as I know, this branch is working and I'm not sure what the timeline is on being merged. I'll go through and make the dependencies use ESM import though to resolve the changes requested by @web-mech .

reesericci commented 3 months ago

Just moved everything over to ESM in this PR!

TamimiGitHub commented 3 months ago

Fantastic, thanks for that @reesericci! I'll keep an eye out on the next release

web-mech commented 3 months ago

Thanks @reesericci , will see if we can merge this in soon