Open shrpne opened 6 years ago
I agree, the current size is a little bit big.
yeah looking forward to this.
We have the same issue here, had to add the dependency for a project with a third party API, only one call. That methods costs us 50 KB just for a list of cities to be displayed on a combobox ;)
Not sure how this could be splitted though
Just made lean-he for my use case, forked from this very repo. Please see if this can help others.
@adnaan1703 how big is lean-he?
also if you need only decode
method you can use entity-decode, it is only 373B for browser, but if it is used in the node.js it loads he
and for node.js size doesn't matter
@mdevils' html-entities library is a little smaller, about as popular in terms of NPM weekly downloads, and more recently updated.
@fb55's entities is even smaller and faster.
Would be great if
he
methods could be imported separately to decrease overall app size