Skip to content
Evergreen Evergreen
Documentation

querystring is deprecated

Deprecated. The source gives no day. Replacement: URLSearchParams. Source: querystring package deprecation notice.

Check a version:

evergreen check pkg:npm/querystring

npm describes the querystring API as legacy and recommends URLSearchParams for new code.

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

   
Status Deprecated
Severity medium
Ecosystem npm
Component pkg:npm/querystring
Affected versions vers:npm/*
Date from the source The source gives no day
Replacement URLSearchParams
Evidence last seen 2026-10-16
Reviewed 2026-10-16 by arminazimi, drafted by the npm-deprecated importer
Review due 2027-10-16 (365 days after the last review)
Rule ID npm.package.querystring.deprecated

Sources

Migration

Constraints

  • Preserve percent encoding, repeated keys, empty values, ordering, array handling, and input coercion expected by callers.

Steps

  1. Replace querystring. Translate parse and stringify usages to URLSearchParams and remove the querystring dependency.
  2. Verify query-string behavior. Compare representative and malformed inputs, including repeated keys and non-ASCII values, before and after migration.

Verification

  • npm run test --if-present: Run query parsing, serialization, and repository tests.

Detected by

The npm detector. See Detectors and Compatibility.

Same ecosystem

Data

This page is generated from registry/npm.json, rule npm.package.querystring.deprecated, 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