axelpale / genversion

Safety first! An utility to add the version string to your client-side NPM module without exposing package.json.
MIT License
66 stars 15 forks source link

Add a flag to make the version output as double-quotes instead of single-quotes. #14

Closed rhea-manuel closed 3 years ago

rhea-manuel commented 3 years ago

Right now, genversion outputs the version in single quotes; it'd be nice for style reasons to have an option to output in double quotes instead (" instead of ').

axelpale commented 3 years ago

Thanks @rhea-manuel for the feature request. I have good news: the freshly-baked genversion v3.0.0 now has flags -d, --double to generate with double quotes instead of singles. In case you are using the API, set useDoubleQuotes: true. Let me know if you find any unexpected behavior.