ZooTools / email-spell-checker

📮 An ultratiny (1.9 KB) and fast JavaScript email checker to reduce users typing a wrong email. Written in TypeScript. Enterprise-grade.
https://zootools.co/tools/email-spell-checker
MIT License
164 stars 11 forks source link

Export POPULAR_TLDS #11

Closed oskarer closed 2 years ago

oskarer commented 2 years ago

Also export POPULAR_TLDS just as POPULAR_DOMAINS is exported, making it possible to add TLDs to the run config as;

emailSpellChecker.run({
  topLevelDomains: [...emailSpellChecker.POPULAR_TLDS, 'com.au', 'ru'], // extends existing TLDs
});
ferreiro commented 2 years ago

@oskarer LOVE it, great addition! Shipping it now :)

and kudos for being the first PR!!!

oskarer commented 2 years ago

Great stuff, thanks for your work 🙌

ferreiro commented 2 years ago

@oskarer Published 1.11.0 version on NPM :) https://www.npmjs.com/package/@zootools/email-spell-checker/v/1.11.0

Tweeted about your contribution. Are u on Twitter by any means? https://twitter.com/EmailSpell/status/1584551775696478208