Skip to content

A pointless module to scrape color hexadecimals from a list of files

Notifications You must be signed in to change notification settings

elliottcrush/popular-colors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A pointless module to scrape color hexadecimals from a list of files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published