Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modular usage #64

Open
shrpne opened this issue May 24, 2018 · 7 comments
Open

Modular usage #64

shrpne opened this issue May 24, 2018 · 7 comments

Comments

@shrpne
Copy link

shrpne commented May 24, 2018

Would be great if he methods could be imported separately to decrease overall app size

@rmariuzzo
Copy link

I agree, the current size is a little bit big.

he 1 1 1 bundlephobia 2018-06-22 12-11-53

@adnaan1703
Copy link

yeah looking forward to this.

@Norbz
Copy link

Norbz commented Sep 4, 2018

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

@adnaan1703
Copy link

Just made lean-he for my use case, forked from this very repo. Please see if this can help others.

@wordythebyrd
Copy link

@adnaan1703 how big is lean-he?

@shrpne
Copy link
Author

shrpne commented Apr 11, 2019

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

@dandv
Copy link

dandv commented Jul 1, 2020

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants