SkillAgentSearch skills...

Jqlite

⚡ The query language for JSON

Install / Use

/learn @Jay-Karia/Jqlite
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<div align="center" style="margin-top: 40px"> <img src="./public/svg-logo-bg-trans-cropped.svg" alt="JQLite Logo" width="50px"/> <h1 style="margin-top: 15px;">JQLite</h1> <p>The query language for JSON</p> </div> <p align="center"> <img src="https://img.shields.io/npm/v/jqlite-ts?style=flat-square&color=%2358ff4f" alt="Version" /> <img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" alt="License: MIT"> <img src="https://img.shields.io/npm/d18m/jqlite-ts?style=flat-square&color=%23ffea2b"alt="NPM Downloads"> </p>

🌟 Features

  • Basic query selection
  • Fallback Mechanism
  • Wildcard support
  • Array Slices
  • Multiple Key Selection
  • Key Omission
  • Single Key Omission
  • Functions
  • Comparison Operators
  • Conditions
  • Configurable

📦 Installation

# npm
npm install jqlite-ts

# yarn
yarn add jqlite-ts

# pnpm
pnpm add jqlite-ts

🚀 Getting Started

import { config, data, query } from 'jqlite-ts';

// Load the data from a JSON file
data.load("./data.json");

// Override the default config
config.set({
  fallback: "No data found!"
});

// Run the query
query.run("$.friends[*].(name, age)", (result) => {
  console.log(result);
});

📌 Overview

// Basic Selection
$.friends[0].name

// Fallback
$.friends[0].favorites.game ?? "No favorite game"

// Wildcard
$.friends[*].name

// Array Slices
$.friends[0:2].name

// Multiple Key Selection
$.friends[0].(name, age)

// Multiple Key Omission
$.friends[0].!(name, age)

// Single Key Omission
$.friends[0].!name

// Functions
$.friends[0].name.#upper()
$.friends[*].age.#avg()
$.friends[*].hobbies.#length()

// Comparison Operators
$.friends[0].age > 20

// Conditions
$.friends[?(@.age >= 18)]
$.friends[?(@.country.#contains('IN'))].name
$.scores[?((@ > 150) || (@ < 100))]
$.friends[?((@.age > 20) && (@.hobbies[0].#contains('sports')))]

📝 Contributing

Read the CONTRIBUTING.md file for instructions on how to contribute to this project.

View on GitHub
GitHub Stars11
CategoryDevelopment
Updated5mo ago
Forks1

Languages

TypeScript

Security Score

92/100

Audited on Oct 26, 2025

No findings