popular-colors
v1.0.4
Published
A pointless plugin which generates a list of colours from any given stylesheet / pre-processor files
Downloads
3
Readme
Popular Colors
A completely pointless and arbitrary package which allows you to query a directory of files in order to receive a concise output of what hexadecimal colors that have been used.
How do I get the colors?
npm install popular-colors
popularColors.returnColorsAsJson( { outputData: 'json' } )
.then((data) => console.log(data))
.catch((err) => console.log(err))
popularColors.returnColorsAsJson( config )
- Returns a promise to resolve a file full of lovely colors
Configuration
config.pathToFile
Yep you guessed it - String location to the file you want to scrape colors from
Wishlist
- Support for RGB as well as hexadecimal
- Create inconsistency for the spelling of color / colours to confuse and annoy
- Create arbitrary tests that give us confidence we're providing a package that no one is really going to use