JSPM

popular-colors

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q31920F
  • License ISC

A pointless plugin which generates a list of colours from any given stylesheet / pre-processor files

Package Exports

  • popular-colors

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (popular-colors) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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()

  • Returns a promise to resolve a file full of lovely colors

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