1.0.4 • Published 7 years ago

popular-colors v1.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

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
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.0

7 years ago