egoist / package-size

Get the bundle size of an npm package.
MIT License
425 stars 26 forks source link

target option is missing #25

Open kimulaco opened 5 years ago

kimulaco commented 5 years ago

There is a --target option in the README, but it does not seem to be implemented. https://github.com/egoist/package-size/blob/master/README.md#target

package-size

Is the option already lost for --target? Or will it be implemented from now on?

egoist commented 5 years ago

That's available in the API but not in the CLI, you can add it here:

https://github.com/egoist/package-size/blob/d7804a972bc5ec68167585eed8036610eb691b8c/cli.js#L126

PR welcome.

kimulaco commented 5 years ago

I see, I'm sorry! I looked over the documentation again, but as you said it was an API only option.

I read source well again, and I will try to put out PR if necessary!