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

Built-in isBuiltin #12

Closed
webpro opened this issue Oct 25, 2022 · 3 comments
Closed

Built-in isBuiltin #12

webpro opened this issue Oct 25, 2022 · 3 comments

Comments

@webpro
Copy link

webpro commented Oct 25, 2022

FYI, Node.js v16.17.0 and v18.6.0 introduced module.isBuiltin, so when on bleeding edge we can import the built-in isBuiltin:

import { isBuiltin } from 'node:module';
@sindresorhus
Copy link
Owner

Thanks for letting me know. I'll be sure to deprecate this package in favor of that when Node.js 14 is no longer supported.

@sindresorhus
Copy link
Owner

This package is now repurposed to only check for using a static list of built-ins from the latest Node.js version, not from the current one. So this still has a purpose even with the built-in API.

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