这是indexloc提供的服务,不要输入任何密码
Skip to content

Using directly with node (no ESM) #12

@millette

Description

@millette

If your setup doesn't support ESM (import/export) yet, you'll have to include the dependency with

const bestContrast = require('get-best-contrast-color').default

Note the necessary .default.

Can it be fixed? If not, adding a line to the readme would be helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions