MAJOR=4
MINOR=19
DEVNAME=tty19
  3   ˆl–Ãa¾”Šj"TÊ�À½q–TÅ£ŽþZ�g è|  hÏÉ75È¿Å  K    ; configuration for php sybase module
; priority=20
extension=pdo_dblib.so
  7   ˆl–Ãa¾”J_)â‚ÀŠãM)‹Fÿ‘äÇò 8àdiÙc�Á4ÿóÊƒh¹ÉÀÆ      0
  A   ˆl–äY>”ª_)%ÍÀ³p/)‹Fÿ�þclk6YZl ‘ðÊð?ŸËƒàsÊ_ŠI|¥ŠGgYâ¯ÂÈ Z    ---
title: npm-query
section: 1
description: Dependency selector query
---

### Synopsis

<!-- AUTOGENERATED USAGE DESCRIPTIONS -->

### Description

The `npm query` command allows for usage of css selectors in order to retrieve
an array of dependency objects.

### Piping npm query to other commands

```bash
# find all dependencies with postinstall scripts & uninstall them
npm query ":attr(scripts, [postinstall])" | jq 'map(.name)|join("\n")' -r | xargs -I {} npm uninstall {}

# find all git dependencies & explain who requires them
npm query ":type(git)" | jq 'map(.name)' | xargs -I {} npm why {}
```

### Extended Use Cases & Queries

```stylus
// all deps
*

// all direct deps
:root > *

// direct production deps
:root > .prod

// direct development deps
:root > .dev

// any peer dep of a direct deps
:root > * > .peer

// any workspace dep
.workspace

// all workspaces that depend on another workspace
.workspace > .workspace

// all workspaces that have peer deps
.workspace:has(.peer)

// any dep named "lodash"
// equivalent to [name="lodash"]
#lodash

// any deps named "lodash" & within semver range ^"1.2.3"
#lodash@^1.2.3
// equivalent to...
[name="lodash"]:semver(^1.2.3)

// get the hoisted node for a given semver range
#lodash@^1.2.3:not(:deduped)

// querying deps with a specific version
#lodash@2.1.5
// equivalent to...
[name="lodash"][version="2.1.5"]

// has any deps
:has(*)

// deps with no other deps (ie. "leaf" nodes)
:empty

// manually querying git dependencies
[repository^=github:],
[repository^=git:],
[repository^=https://github.com],
[repository^=http://github.com],
[repository^=https://github.com],
[repository^=+git:...]

// querying for all git dependencies
:type(git)

// get production dependencies that aren't also dev deps
.prod:not(.dev)

// get dependencies with specific licenses
[license=MIT], [license=ISC]

// find all packages that have @ruyadorno as a contributor
:attr(contributors, [email=ruyadorno@github.com])
```

### Example Response Output

- an array of dependency objects is returned which can contain multiple copies of the same package which may or may not have been linked or deduped

```json
[
  {
    "name": "",
    "version": "",
    "description": "",
    "homepage": "",
    "bugs": {},
    "author": {},
    "license": {},
    "funding": {},
    "files": [],
    "main": "",
    "browser": "",
    "bin": {},
    "man": [],
    "directories": {},
    "repository": {},
    "scripts": {},
    "config": {},
    "dependencies": {},
    "devDependencies": {},
    "optionalDependencies": {},
    "bundledDependencies": {},
    "peerDependencies": {},
    "peerDependenciesMeta": {},
    "engines": {},
    "os": [],
    "cpu": [],
    "workspaces": {},
    "keywords": [],
    ...
  },
  ...
```

### Configuration

<!-- AUTOGENERATED CONFIG DESCRIPTIONS -->
## See Also

* [dependency selectors](/using-npm/dependency-selectors)

     ˆÃ�þB gÁ 7H ?Ìƒh¹ËÂÈ      MAJOR=4
MINOR=6
DEVNAME=tty6
  7   ˆl–ßi~”T†»Ê�zàAq·ÔÅ£�þ^!%Y¹_.?#²€þÍ„eÀ4ïÌÃÉ ?÷     PK    ]‘‹V¿ã�  S  "   wheel-0.38.4.dist-info/LICENSE.txt]R[o›0~÷¯8ÊS+¡lëã4MsÀ)Ö ã4Ë£&x"8ÂÎ¢þû;éºMB²|.ßÍl¸„Â´zrš�Ôž_gs<<´�ðôñÓdj2z„ÜŽ~€/ÝÎo½rþ¤Ì¸ìO_AM´vò³9\¼�!µžOÆ9c'0=ëÃ+g5yÝ%ÐÏZƒí¡Ô|Ô	x‹¯pÖ³Ã{ðÊLf:‚"-Ê	“~@g{U³Ž|Ê9Û…xÐÙörÒ“W>ðõfÔü aÑÜ7�	A’N«Ì¡÷Ö‚«ñƒ½x˜µCmÀHp¨/]ÐðÖÍÉÜHX�¹ üâÐAÐ™ÀÉv¦§Ž¶Î—ÃhÜ�@gÜ-,ºPŒa'}|°38=ŽÁ îèõ]]½"Ë9êïEÞë`Oa–üq‚õ—yBJw:‹‘EÆŸºõ¡ {;Žö¬á“u&8rŸ	‘ØRûKG/·_`²¥Þ$„8¿¿ê½å…Úú˜îÆ«þ²3zçñáf¶säûßæùsMµ–;*ðjQ½ðŒe° Þ	ì¸Ì«­œ´”{¨Ö@Ë=|çe– ûQÖ4P	Â7uÁÖx™ÛŒ—Ï°Â½²Âÿœo¸DPYA ¼CqÖ°iŽWºâ—û„¬¹,æº@¡¦Bòt[PõVÔUÃ�>CØ’—k�,lÃJ¹DV¬{Á49-Šè�nQ½ú ­ê½àÏ¹„¼*2†ÅCetU°šJÊ7	dtCŸYtU!Šˆc7u°ËY,!Å/•¼*ƒ�´*¥Àk‚.…„quÇ–*xY‹
áCœ¸QEÜ+Ù%Dÿ¼Ž„û¶aïZ