wherenpm
v0.0.2
Published
Get the global npm prefix. Zero dependencies.
Readme
wherenpm.ts
where my npm?
Install
- Using npm:
npm install wherenpm- Using Github repo url:
npm install github:0xA672/wherenpm.ts #latest main- or
npm install github:0xA672/wherenpm.ts#main- or
bun install github:0xA672/wherenpm.tsUsage
import { getNpmPrefix } from 'wherenpm';
console.log(getNpmPrefix());// => '/usr/local' or 'C:\Users\...\AppData\Roaming\npm'