New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

colourlovers-palettes-api

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colourlovers-palettes-api

A wrapper around the colourlovers.com API, allows you to find a set of color palettes by keyword.

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

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

colourlovers.com Palettes API

What is it?

An unofficial wrapper around the colourlovers.com API, allows you to find a set of color palettes by keyword. The result will be in the form of an array which contains multiple arrays of pallets in hex code.

Install

$ npm install --save colourlovers-palettes-api

Available functions

palettes.search(keyword, numberOfResults)
// finds a specified number of colour patterns related to the given keyword.

palettes.random(keyword)
// finds 1 random set of colour patterns.

Example usage

const palettes = require('colourlovers-palettes-api')

// find a set of 5 color pallets labeled as 'intense'

palettes.search('intense', 5)
.then((result) => {
    console.log(result);
})
.catch((err) => {
    console.log(err);
})


Example response

[ [ '3F324D', '93C2B1', 'FFEACC', 'FF995E', 'DE1D6A' ],
  [ 'C4EAFD', 'FF5756', 'F4343F', 'B9EAF8', 'A3D3F9' ],
  [ 'A0B6AB', 'D4DABA', 'E9ECB7', 'EBF785', 'F2FD01' ],
  [ 'A20075', 'B92669', 'D04C5E', 'E77152', 'FE9746' ],
  [ '969E9B', '707A6F', '6B5846', '663330', '521829' ] ]


Author

Ehab Khaireldin

License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 22 Dec 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