JSPM

take-colors

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q27206F
  • License MIT

Take Color

Package Exports

  • take-colors

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (take-colors) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

NPM version NPM downloads MIT License js-standard-style Build Status: Linux Build Status: Windows Coverage Status

take-color

Take Color

v1.1.0

Installation

npm i -S take-color

Usage

var color = require('take-color');

color.fromImage('./test/static/test.png').then( res => {
  console.log( res ); // [ [ 'SteelBlue', [ 70, 130, 180 ], '1.00' ] ]
});

color().fromName('Blue', 'blue.jpg').then( () => {
  console.log( 'blue file created' );
});

Tests

npm test

Change Log

all changes

Created by

Dimitry, 2@ivanoff.org.ua

curl -A cv ivanoff.org.ua