PageSourceSearch

https://pnpm.io/assets/js/ecd570fb.9d64b833.js

js pnpm.io collected 2026-09-24 07:22:36 UTC 2,853 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["11836"],{85040(e,n,s){s.r(n),s.d(n,{metadata:()=>r,default:()=>p,frontMatter:()=>l,contentTitle:()=>c,toc:()=>o,assets:()=>a});var r=JSON.parse('{"id":"cli/search","title":"pnpm search","description":"Added in: v11.0.0","source":"@site/versioned_docs/version-11.x/cli/search.md","sourceDirName":"cli","slug":"/cli/search","permalink":"/11.x/cli/search","draft":false,"unlisted":false,"editUrl":"https://github.com/pnpm/pnpm.io/edit/main/versioned_docs/version-11.x/cli/search.md","tags":[],"version":"11.x","lastUpdatedBy":"Zoltan Kochan","lastUpdatedAt":1788556519000,"frontMatter":{"id":"search","title":"pnpm search"},"sidebar":"docs","previous":{"title":"pnpm view","permalink":"/11.x/cli/view"},"next":{"title":"pnpm docs","permalink":"/11.x/cli/docs"}}'),t=s(91987),i=s(67008);let l={id:"search",title:"pnpm search"},c,a={},o=[{value:"Examples",id:"examples",level:2},{value:"Options",id:"options",level:2},{value:"--json",id:"--json",level:3},{value:"--search-limit &lt;number&gt;",id:"--search-limit-number",level:3}];function d(e){let n={code:"code",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.p,{children:"Added in: v11.0.0"}),"\n",(0,t.jsxs)(n.p,{children:["Aliases: ",(0,t.jsx)(n.code,{children:"s"}),", ",(0,t.jsx)(n.code,{children:"se"}),", ",(0,t.jsx)(n.code,{children:"find"})]}),"\n",(0,t.jsx)(n.p,{children:"Search the registry for packages matching the given keywords."}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-sh",children:"pnpm search <keyword> [<keyword> ...]\n"})}),"\n",(0,t.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-sh",children:"pnpm search webpack plugin\npnpm search @types/node\n"})}),"\n",(0,t.jsx)(n.h2,{id:"options",children:"Options"}),"\n",(0,t.jsx)(n.h3,{id:"--json",children:"--json"}),"\n",(0,t.jsx)(n.p,{children:"Output search results in JSON format."}),"\n",(0,t.jsx)(n.h3,{id:"--search-limit-number",children:"--search-limit <number>"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Default: ",(0,t.jsx)(n.strong,{children:"20"})]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Maximum number of results to show."})]})}function p(e={}){let{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},67008(e,n,s){s.d(n,{R:()=>l,x:()=>c});var r=s(71763);let t={},i=r.createContext(t);function l(e){let n=r.useContext(i);return r.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.