Skip to content
Evergreen Evergreen
Documentation

util.isString has been removed

Removed. The source gives no day. Replacement: typeof arg === ‘string’. Source: Node.js deprecations: DEP0045 to DEP0058 util.is* functions.

Check a version:

evergreen check pkg:generic/nodejs

Node.js removed util.isString() (DEP0045 to DEP0058 group, end-of-life since v23.0.0), so calls throw a TypeError.

Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>

   
Status Removed
Severity high
Ecosystem nodejs
Component pkg:generic/nodejs
Affected versions vers:semver/>=23.0.0
Date from the source The source gives no day
Replacement typeof arg === ‘string’
Evidence last seen 2026-10-21
Reviewed 2026-10-21 by arminazimi
Review due 2027-10-21 (365 days after the last review)
Rule ID nodejs.symbol.util.isstring

Sources

Migration

Constraints

  • Keep the behavior of the call unchanged; check the replacement’s argument and error handling differences.

Steps

  1. Replace util.isString. Replace each reported util.isString(x) with typeof x === ‘string’.

Verification

  • npm run test --if-present: Run the repository tests when defined.

Detected by

The npm detector. See Detectors and Compatibility.

Other versions of this product

Same ecosystem

Data

This page is generated from registry/nodejs.json, rule nodejs.symbol.util.isstring, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.

Last updated