Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

colormaker

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colormaker

NPM module that supplies a bunch of methods to generate colors according to a pattern

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

COLORMAKER

Simple and easy use module that has the tools to generate colors on the fly.

How to install

npm install colormaker -S

How to use

var cm = require('colormaker');

cm.getRandomColors(n); // This will output 5 colors
                      // By default is 1

/*
  This will return an array of 4096 hex colors
*/
cm.getAllColors(); 

/*
  Returns an array with all the colors that makes
  a primary color
*/
cm.paintPrimary(primary_color); // r, g, b

I'm just playing around but it would be great if someone would'd like to add extra features

Keywords

FAQs

Package last updated on 20 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc