jsr-io / jsr-npm

A cli tool to make installing packages form jsr.io in node easy
https://npmjs.com/package/jsr
MIT License
92 stars 13 forks source link

feat: detect package manager from env #15

Closed marvinhagemeister closed 5 months ago

marvinhagemeister commented 5 months ago

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.