You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really nice to have the ability to just pull in the methods you need, instead of pulling in the entire library for a single method. I have a situation where I only need the numberFormat section, which is 10 lines of code, but to get at it, I need to pull in the entire library, adding unnecessary bloat. These days, when building mobile apps, every byte counts.
As suggested in issue #19, it would be really cool to have the abilty to choose the individual method you want via the destructing syntax:
import{date}from'humanize';
or you can go the same route as lodash, with individual module exports, so that you can require them in by name:
importdatefrom'humanize/date';
The text was updated successfully, but these errors were encountered:
It would be really nice to have the ability to just pull in the methods you need, instead of pulling in the entire library for a single method. I have a situation where I only need the
numberFormat
section, which is 10 lines of code, but to get at it, I need to pull in the entire library, adding unnecessary bloat. These days, when building mobile apps, every byte counts.As suggested in issue #19, it would be really cool to have the abilty to choose the individual method you want via the destructing syntax:
or you can go the same route as lodash, with individual module exports, so that you can require them in by name:
The text was updated successfully, but these errors were encountered: