Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this work with regular require? #21

Closed
abbott567 opened this issue Aug 21, 2021 · 1 comment
Closed

Can this work with regular require? #21

abbott567 opened this issue Aug 21, 2021 · 1 comment

Comments

@abbott567
Copy link

Hi, is there a way to get this working like a regular module.exports and require?

Tried unsuccessfully with the following:

const hexrgb = require('hex-rgb');

const { hexrgb } = require('hex-rgb');

const hexrgb = require('hex-rgb').default;

Thanks

@sindresorhus
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants