A simplified jQuery-like capable library

Usage no npm install needed!

<script type="module">
  import dhayaKquery from 'https://cdn.skypack.dev/@dhaya/kquery';



This repository contains the code for kQuery, a simplified jQuery-like capable library.


kQuery can be used either in your favorite framework or directly in the browser.

NPM / Yarn

First install the package from NPM / Yarn:

npm install @dhaya/kquery # or yarn add @dhaya/kquery

Then import kQuery in your code like this:

import kQuery from '@dhaya/kquery'


You can either get access to kQuery globally, or in a script module (on modern browsers):

→ Global access

<script src="https://unpkg.com/@dhaya/kquery/dist/kquery.umd.js"></script>

→ Module

<script type="module">
  import kQuery from 'https://unpkg.com/@dhaya/kquery/dist/kquery.module.js'


kQuery provides a simple jQuery-like interface to help manipulate DOM elements. A basic example is as follows:

    .style({ color: 'white', backgroundColor: '#333' })

This will find all <strong> elements in <h2> headings, and change their style according to the specified parameters.

Other methods are available. You can find them in the API reference.

Browser compatibility

kQuery works in all modern browsers and Internet Explorer ≥ 11.


This project follows a few conventions and provides a set of tools to help developers get started quickly. Please check CONTRIBUTING.md for important information regarding contribution guidelines.