Skip to content

Expose styles as variables? #565

@LitoMore

Description

@LitoMore

A package I am maintaining chalk-pipe has a function to determine what type of style is passed in.

Currently Chalk only exposes the types of styles. But in my case, I want the variables.

https://github.com/LitoMore/chalk-pipe/blob/main/source/index.ts#L3-L23

Could we add some exports like this:

export const modifiers = ['rest', 'bold' , 'dim', ...];
export const colors = = ['black', 'red', 'green', ...];

Since we already documented which styles are supported in the readme. It's a good idea to expose these styles as variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions