Skip to content

mkramb/css-to-enum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

css-to-enum

npm install css-to-enum -g

Usage

css-to-enum -i stylesheet.css -o enum.ts
css-to-enum -i stylesheet.css -o enum.ts -e Styles
css-to-enum --help

Input

.red {
  color: red;
}
.blue-background {
  background: blue;
}
.super---background {
  background: blue;
}

Output

// autogenerated with css-to-enum
export enum Styles {
  'red' = 'red',
  'blue_background' = 'blue-background',
  'super___background' = 'super---background'
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published