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

colorbrewer

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colorbrewer

A shim module of colorbrewer2 by Cythina Brewer for browserify

  • 1.5.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
104K
decreased by-9.44%
Maintainers
0
Weekly downloads
 
Created
Source

colorbrewer

Color specifications and designs developed by Cynthia Brewer (http://colorbrewer2.org/).

This is a shim module of colorbrewer2 by Cythina Brewer for browserify.

It is also a shim for the files provided in d3.js lib.

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:

const colorbrewer = require('colorbrewer');

console.log(colorbrewer.schemeGroups.sequential);
// ["BuGn","BuPu","GnBu",...]

console.log(colorbrewer.Blues[5]);
// ["#eff3ff","#bdd7e7","#6baed6","#3182bd","#08519c"]

Notes:

  • There is a compatibility issue with 1.4.0 so do lock your version to 1.3.0 for now
  • 1.5.0 is using rollup to generate both UMD and ES module so hopefully this will resolve the problems for most of us.

Huge thanks to:

  • Connor Peet - connor4312 - for adding TypeScript support since version 1.4.0

Keywords

FAQs

Package last updated on 28 Sep 2024

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