Skip to content

Option to generate constant name in uppercase #241

@vithort

Description

@vithort

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! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions