One of the things I like about lodash is the ability to pull in individual methods rather than the whole lodash toolchain via:
`import isEqual from "lodash/isEqual"
For your project, the instructions state that you should _.mixin(...) to add inflector methods to lodash, but I never use lodash that way.
I quickly found that I could do:
import inflection from "lodash-inflection"export const singularize = inflection.singularize.bind(inflection)
and it seems to be working fine.
So, my request is to add support to importing individual methods in a style similar to lodash, so:
import singularize from "lodash-inflection/singularize"
etc.
One of the things I like about lodash is the ability to pull in individual methods rather than the whole lodash toolchain via: `import isEqual from "lodash/isEqual"
For your project, the instructions state that you should
_.mixin(...)
to add inflector methods to lodash, but I never use lodash that way.I quickly found that I could do:
import inflection from "lodash-inflection"
export const singularize = inflection.singularize.bind(inflection)
and it seems to be working fine.So, my request is to add support to importing individual methods in a style similar to lodash, so:
import singularize from "lodash-inflection/singularize"
etc.