npm User Agent Parser

JSON →
library 1.0.0 ·javascript
verified May 27, 2026

This package, `npm-config-user-agent-parser`, provides a utility to parse the `process.env.npm_config_user_agent` string, which is set by both npm and Yarn. It extracts structured information including versions for `npm`, `yarn`, and `node`, as well as the operating system `platform` and processor `arch`. The current stable version is 1.0.0, indicating a mature and stable API, and its release cadence is typically infrequent, focusing on stability given its single, well-defined purpose. Key differentiators include its focused scope on this specific environment variable and its ability to normalize the potentially varied user agent strings into a consistent JSON object, simplifying programmatic access to crucial environment details for tooling and scripts.

total hits 15
actors 6 distinct systems
last hit 2d ago human
GPTBot
2
Script
1
ClaudeBot
1
Search engines
1
Humans
4

top countries 🇺🇸 United States · 🇵🇱 Poland · 🇨🇦 Canada · BD · VN