Skip to content

[Replacement]: @img/colour #786

Description

@Norbiros

Package to replace

@img/colour

Suggested replacement(s)

another package: color

Manifest type

preferred (lighter or more modern alternative package)

Rationale

@img/colour is just a port of the color package to CommonJS. It is just better to switch back to color and use ESM, which allows for better tree-shaking.

Source:

This package converts the color package and its dependencies, all of which are MIT-licensed, to CommonJS.

Availability

No response

Code example (optional)

Before:

const Color = require('@img/colour')

const red = Color('red').hex()

After:

import Color from 'color'

const red = Color('red').hex()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions