• Version 2.1.0
  • Published
  • 62.6 kB
  • 6 dependencies
  • BSD-2-Clause license


npm i cheerio-select
yarn add cheerio-select
pnpm add cheerio-select


CSS selector engine supporting jQuery selectors



function filter

filter: (selector: string, elements: AnyNode[], options?: Options) => Element[];

    function is

    is: (
    element: Element,
    selector: string | ((el: Element) => boolean),
    options?: Options
    ) => boolean;

      function select

      select: (
      selector: string | ((el: Element) => boolean),
      root: AnyNode | AnyNode[],
      options?: Options,
      limit?: number
      ) => Element[];

        function some

        some: (
        elements: Element[],
        selector: string | ((el: Element) => boolean),
        options?: Options
        ) => boolean;


          interface Options

          interface Options extends CSSSelectOptions<AnyNode, Element> {}

            property root

            root?: Document;
            • Optional reference to the root of the document. If not set, this will be computed when needed.

            Package Files (1)

            Dependencies (6)

            Dev Dependencies (12)

            Peer Dependencies (0)

            No peer dependencies.


            To add a badge like this badgeto your package's README, use the codes available below.

            You may also use to create a custom badge linking to

            • Markdown
            • HTML
              <a href=""><img src="" alt=""></a>