@fantasy-color/from-rgb
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

@fantasy-color/from-rgb

Parse a CSS RGB string into a RGB object.

type fromRgb = (rgb: string) => RGB

Example usage:

import fromRgb from '@fantasy-color/from-rgb'

fromRgb('rgb(0, 250, 10)')
// { red: 0, green: 250, blue: 10 }

Readme

Keywords

none

Package Sidebar

Install

npm i @fantasy-color/from-rgb

Weekly Downloads

1

Version

2.1.0

License

MIT

Unpacked Size

5.31 kB

Total Files

9

Last publish

Collaborators

  • ijigg
  • moria.am
  • atilaz
  • gideon.gur
  • irminakacz
  • fernando.3
  • xaviervia
  • psxcode
  • deepsweet