module-which

Finds a module using path and node conventions

MIT 50 个版本
安装
npm install module-which
yarn add module-which
pnpm add module-which
bun add module-which
README

module-which

Finds a module using path and node conventions.

import which from 'module-which';

which('biome', (err, biome) => {
  // biome = path to biome
})
import { whichAll } from 'module-which';

whichAll(['biome', 'which'], (err, commands) => {
  // commands[0] = path to biome
  // commands[1] = path to which
})

Documentation

API Docs

版本列表
1.3.2 2026-05-26
1.3.1 2026-05-26
1.3.0 2025-12-20
1.2.0 2025-12-18
1.1.10 2025-12-12
1.1.9 2025-12-12
1.1.8 2025-12-12
1.1.7 2025-12-04
1.1.6 2025-12-04
1.1.5 2025-12-03
1.1.4 2025-11-06
1.1.3 2025-10-21
1.1.2 2025-10-21
1.1.1 2025-07-08
1.1.0 2025-06-29
1.0.31 2025-06-22
1.0.30 2025-06-22
1.0.29 2025-06-21
1.0.28 2025-06-21
1.0.27 2025-06-20
1.0.26 2025-06-18
1.0.25 2025-06-14
1.0.24 2025-05-24
1.0.23 2025-05-20
1.0.22 2025-05-19
1.0.21 2025-05-19
1.0.20 2025-05-18
1.0.19 2025-01-24
1.0.18 2025-01-23
1.0.17 2025-01-23
1.0.16 2025-01-23
1.0.15 2025-01-23
1.0.14 2025-01-23
1.0.13 2025-01-23
1.0.12 2025-01-15
1.0.11 2025-01-15
1.0.10 2025-01-14
1.0.9 2025-01-14
1.0.8 2025-01-14
1.0.7 2025-01-12
1.0.6 2025-01-04
1.0.5 2025-01-04
1.0.4 2025-01-04
1.0.3 2025-01-04
1.0.2 2025-01-04
1.0.1 2025-01-04
1.0.0 2025-01-04
0.2.1 2024-12-29
0.2.0 2024-12-29
0.1.0 2024-12-28