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

Option to generate constant name in uppercase #241

Open
vithort opened this issue Jan 25, 2024 · 1 comment
Open

Option to generate constant name in uppercase #241

vithort opened this issue Jan 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@vithort
Copy link

vithort commented Jan 25, 2024

Constants can be declared with uppercase or lowercase, but a common convention is to use all-uppercase letters, especially for primitives because they are truly immutable.

Based on this, I would like to know if it is possible to generate the name of constants in svg-to-ts-constants in uppercase.

I can define the prefix of the constant with option: prefix, but I couldn't change the "name", is there any way? Could it be an improvment?

export const prefix_Dinossaur: {
  name: 'dinossaur';
  data: string;
} = {
  name: 'dinossaur',
  data: `<svg width="80" ...</svg>`
};

thank you! :)

@nivekcode
Copy link
Owner

Yes, this is a valid feature request. Thx for bringing this up 👍

@nivekcode nivekcode added the enhancement New feature or request label Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants