sort-colors-js

1.0.2 • Public • Published

sort-colors-js

Sort an array of hex colors by HUE

Install

npm install sort-colors-js

Usage

import sortColorsByHue from 'sort-colors-js'
 
const arrayColorsSorted = sortColorsByHue([
            '#e6194b',
            '#3cb44b',
            '#ffe119',
            '#4363d8',
            '#f58231',
            '#911eb4'
            ])

colors sorted

Readme

Keywords

Package Sidebar

Install

npm i sort-colors-js

Weekly Downloads

4

Version

1.0.2

License

ISC

Unpacked Size

2.06 kB

Total Files

3

Last publish

Collaborators

  • gaspardc