
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
simple-query
Advanced tools
Lightweight implementation of jQuery api subset. Designed as a thin wrapper around native browser apis. SimpleQuery is a small and fast library that you already know how to use.
SimpleQuery core functionality will cost you less than 1KB. Import or require modules as you need them. Need to manipulate element classes? Require "classes" module and toggle classes with jQuery api you are probably already familiar with.
Keep in mind that SimpleQuery does not do all that jQuery does. By design this library is a thin wrapper of browser native apis. Because of that selecting elements will work only as good as native .querySelectorAll() does - as there is no custom selector engine implementation. What works with SimpleQuery will work with jQuery - other way may not always be true. At any time you can switch to jQuery and keep your application running.
This library is best used for applications which require small javascript footprint and have a strict performance budget. SimpleQuery is running on traffic heavy web application where jQuery is loaded as polyfill only when browser support is not good enough.
Import library for usage
var $ = require('simple-query');
Import modules needed for work you want to do:
// require classes, attributes and ajax functionality
require('simple-query/src/classes');
require('simple-query/src/attributes');
require('simple-query/src/ajax');
Profit:
// Manipulate classes
$('p.text').addClass('foo').toggleClass('bar');
// Manipulate Attributes
$('p.text').each(function() {
console.log($(this).attr('title'));
});
// Get html from server and manipulate html
$.get('/test-html').done(function(html) {
$('.content').html(html);
});
Full set of examples is available in tests codebase where you see what can and cannot be done with SimpleQuery api.
SimpleQuery functionality can be extended with following modules:
SimpleQuery is packaged as CommonJS module available via npm.
npm install simple-query --save
FAQs
Lightweight implementation of jQuery api subset
The npm package simple-query receives a total of 2 weekly downloads. As such, simple-query popularity was classified as not popular.
We found that simple-query demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.