0.1.1 • Published 10 years ago

is-it-purple v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

is-it-purple

Since our ancestors first began drawing stick figures on the walls of their caves, man has been plagued by one question:

"Is this color considered purple?"

Through science, maths, magic, and science, we now have the answer.

Usage

In your terminal:

npm install is-it-purple

In your project:

var purple = require('is-it-purple');
var isPurple = purple.isPurple("#00FF00");

Note:

The isPurple function can accept the following inputs:

  • A string containing a hex code prepended with #, eg: "#816687"
  • A string containing a hex code not prepended with #, eg: "816687"
  • A string containing comma-separated RGB values, eg: "129, 102, 135"
  • An array containing RGB values, eg: [129, 102, 135]

TODO:

  • Accept 3 character strings.
0.1.1

10 years ago

0.1.0

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago