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

colorbrewer

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colorbrewer - npm Package Compare versions

Comparing version 1.1.0 to 1.3.0

7

index.js

@@ -5,3 +5,8 @@ // This product includes color specifications and designs developed by Cynthia Brewer (http://colorbrewer.org/).

var colorbrewer = {YlGn: {
var colorbrewer = {schemeGroups: {
sequential: ["BuGn","BuPu","GnBu","OrRd","PuBu","PuBuGn","PuRd","RdPu","YlGn","YlGnBu","YlOrBr","YlOrRd"],
singlehue:["Blues","Greens","Greys","Oranges","Purples","Reds"],
diverging: ["BrBG","PiYG","PRGn","PuOr","RdBu","RdGy","RdYlBu","RdYlGn","Spectral"],
qualitative: ["Accent","Dark2","Paired","Pastel1","Pastel2","Set1","Set2","Set3"]
}, YlGn: {
3: ["#f7fcb9","#addd8e","#31a354"],

@@ -8,0 +13,0 @@ 4: ["#ffffcc","#c2e699","#78c679","#238443"],

6

package.json
{
"name": "colorbrewer",
"version": "1.1.0",
"version": "1.3.0",
"description": "A shim module of colorbrewer2 by Cythina Brewer for browserify",

@@ -30,4 +30,4 @@ "keywords": [

"bugs": {
"url" : "https://github.com/saikocat/colorbrewer/issues",
"email" : "saikocatz@gmail.com"
"url": "https://github.com/saikocat/colorbrewer/issues",
"email": "saikocatz@gmail.com"
},

@@ -34,0 +34,0 @@ "style": "colorbrewer.css",

@@ -9,1 +9,13 @@ colorbrewer

It is also a shim for the [files provided in d3.js lib](https://github.com/d3/d3-scale-chromatic).
Access color schemes by name and the number of discrete colors needed, such as `colorbrewer.Blues[5]`. For a list of color schemes by group, use `colorbrewer.schemeGroups`. Example:
```js
const colorbrewer = require('colorbrewer');
console.log(colorbrewer.schemeGroups.sequential);
// ["BuGn","BuPu","GnBu",...]
console.log(colorbrewer.Blues[5]);
// ["#eff3ff","#bdd7e7","#6baed6","#3182bd","#08519c"]
```
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