Typically package managers set the environment variable npm_config_user_agent with something unique that can be used to identify the package manger jsr was executed with. This allows us to detect npm when invoked via npx and pnpm when invoked via pnpm dlx for example.
Typically package managers set the environment variable
npm_config_user_agent
with something unique that can be used to identify the package manger jsr was executed with. This allows us to detectnpm
when invoked vianpx
andpnpm
when invoked viapnpm dlx
for example.