core-util-is is a JavaScript utility package that provides polyfills for the `util.is*` functions (e.g., `isBuffer`, `isArray`, `isNumber`, `isString`, `isRegExp`) which were originally introduced in Node.js v0.12. The package is currently at version 1.0.3 and has not been updated in approximately 4-5 years, with its last known publish around 2021. These `util.is*` functions themselves were largely deprecated in Node.js v4.0.0 (released in 2015), with Node.js core encouraging developers to use native JavaScript alternatives (like `Array.isArray()`) or more robust userland modules. The package serves primarily to maintain backward compatibility for legacy Node.js environments or applications that specifically rely on these older `util` methods. It has no direct runtime dependencies, making it a lightweight inclusion for its specific purpose.
npm install core-util-isVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to import `core-util-is` using CommonJS `require` and use a few of its `is*` utility functions.
Migrate to native JavaScript type checking methods (e.g., `Array.isArray()`, `Number.isFinite()`, `typeof`) or actively maintained type utility libraries.
Always use `const util = require('core-util-is');` for importing this package. In an ESM context, you might be able to use `import util from 'core-util-is';` but it will only provide a default export, and named imports will not work.Evaluate your project's reliance on `core-util-is`. For new projects or to update existing ones, consider replacing it with modern, actively maintained alternatives or native JavaScript constructs.
Regularly audit your project's dependency tree (`npm ls core-util-is`) to understand if and why this package is being included. If it's a transitive dependency, consider if the upstream package can be updated or replaced.
Ensure you are using CommonJS `require` and correctly accessing properties from the imported object. For example, `const util = require('core-util-is'); util.isString('test');` or `const { isString } = require('core-util-is');` (if the module exports an object with these properties).If your project is an ES Module, you will need to switch to `import util from 'core-util-is';`. Note that this will only provide a default export, and named imports will not function as expected for this CJS-only package. If possible, consider replacing the dependency with a modern alternative that supports ESM.
Try deleting `node_modules` and `package-lock.json` (or `yarn.lock`), then reinstalling dependencies with `npm install` or `yarn install`. In some cases, clearing the npm cache (`npm cache clean --force`) or reinstalling Node.js may be necessary.
No dependency data recorded yet.