New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

queryselector.js

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

queryselector.js

Helper function returning all elements in the DOM that matches a specified CSS selector

latest
Source
npmnpm
Version
2.0.1
Version published
Maintainers
1
Created
Source

queryselector.js

Helper function returning all elements in the DOM that matches a specified CSS selector. The function returns a single element when selector starts with a sign character: #foo. It returns a NodeList for all other cases.

Installation

$ npm i --save queryselector.js

Example

import $ from 'queryselector.js';

let myFoo = $('#foo');

// A convenience method is added to the Node and NodeList prototypes:
let myBar = myFoo.$('.bar');

Keywords

query

FAQs

Package last updated on 30 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts