{"id":48055827,"url":"https://github.com/dongskyler/vaniquery","last_synced_at":"2026-04-04T14:27:37.119Z","repository":{"id":37078588,"uuid":"281317408","full_name":"dongskyler/vaniquery","owner":"dongskyler","description":"CLI tool that converts jQuery to ES6 vanilla JavaScript (available as npm package)","archived":false,"fork":false,"pushed_at":"2023-01-20T18:03:42.000Z","size":1190,"stargazers_count":15,"open_issues_count":35,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T22:37:11.127Z","etag":null,"topics":["cli","converts-jquery","jquery","npm-package","typescript","vanilla-javascript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/vaniquery","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dongskyler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-21T06:42:57.000Z","updated_at":"2025-10-25T18:05:20.000Z","dependencies_parsed_at":"2023-02-12T04:15:38.827Z","dependency_job_id":null,"html_url":"https://github.com/dongskyler/vaniquery","commit_stats":null,"previous_names":["badwaterbay/vaniquery"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/dongskyler/vaniquery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongskyler%2Fvaniquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongskyler%2Fvaniquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongskyler%2Fvaniquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongskyler%2Fvaniquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dongskyler","download_url":"https://codeload.github.com/dongskyler/vaniquery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongskyler%2Fvaniquery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31402455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","converts-jquery","jquery","npm-package","typescript","vanilla-javascript"],"created_at":"2026-04-04T14:27:37.006Z","updated_at":"2026-04-04T14:27:37.104Z","avatar_url":"https://github.com/dongskyler.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vaniquery\n\nHomepage: [https://github.com/BadwaterBay/vaniquery](https://github.com/BadwaterBay/vaniquery)\n\n[![npm version](https://badge.fury.io/js/vaniquery.svg)](https://badge.fury.io/js/vaniquery)\n![Node.js CI](https://github.com/BadwaterBay/vaniquery/workflows/Node.js%20CI/badge.svg)\n[![codecov](https://codecov.io/gh/BadwaterBay/vaniquery/branch/master/graph/badge.svg)](https://codecov.io/gh/BadwaterBay/vaniquery)\n[![CodeFactor](https://www.codefactor.io/repository/github/badwaterbay/vaniquery/badge)](https://www.codefactor.io/repository/github/badwaterbay/vaniquery)\n[![DeepScan grade](https://deepscan.io/api/teams/9440/projects/13051/branches/212713/badge/grade.svg)](https://deepscan.io/dashboard#view=project\u0026tid=9440\u0026pid=13051\u0026bid=212713)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n[![GitHub issues](https://img.shields.io/github/issues/BadwaterBay/vaniquery.svg)](https://GitHub.com/BadwaterBay/vaniquery/issues/)\n[![GitHub issues-closed](https://img.shields.io/github/issues-closed/BadwaterBay/vaniquery.svg)](https://GitHub.com/BadwaterBay/vaniquery/issues?q=is%3Aissue+is%3Aclosed)\n[![GitHub pull-requests](https://img.shields.io/github/issues-pr/BadwaterBay/vaniquery.svg)](https://GitHub.com/BadwaterBay/vaniquery/pulls/)\n[![GitHub pull-requests closed](https://img.shields.io/github/issues-pr-closed/BadwaterBay/vaniquery.svg)](https://GitHub.com/BadwaterBay/vaniquery/pulls/)\n\n---\n\n## Table of contents\n\n- [Thank you, contributors](#thank-you-contributors)\n- [Description](#description)\n- [Installation and usage](#installation-and-usage)\n- [Contributing to this project](#contributing-to-this-project)\n\n---\n\n## Thank you, contributors\n\nWe'd like to thank [all of our contributors](https://github.com/BadwaterBay/vaniquery/graphs/contributors).\n\n---\n\n## Description\n\nThis command line interface (CLI) tool helps you convert jQuery to vanilla JavaScript.\n\nOnce upon a time, jQuery offers great convenience to JavaScript developers. However, now vanilla JavaScript has been improved and standardized across all modern browsers. More often than you think, you don't always need jQuery. Removing jQuery dependency means your web app can be loaded faster. It also makes it easier when you migrate your existing web app to more modern libraries or frameworks, such as React.\n\nThis app helps you convert jQuery syntax to vanilla JavaScript ones.\n\n---\n\n## Installation and usage\n\nTo install this tool on your machine, use commands `npm i -g vaniquery` or `yarn global add vaniquery`.\n\nAvailable commands:\n\n- `vaniquery vanilla path/to/file`: Convert jQuery to vanilla JavaScript in a file.\n- `vaniquery revert path/to/file`: Revert vanillaization in a file given its corresponding cache file.\n\nOptions:\n\n- `--help`: Show help.\n- `--version`: Show version number.\n- `-c, --cache`: Cache the original file (_Default_).\n- `-C, --no-cache`: Do not cache the original file (_Not recommended_).\n- `-v, --verbose`: Show the code being worked on.\n\n---\n\n## Available conversions from jQuery to vanilla JavaScript\n\n- `.addClass()`\n- `.append()`\n- `.attr()`\n- `.children()`\n- `$('.class')`\n- `.click()`\n- `.closest()`\n- `$('[data-foo=\"val\"]')` (select by attribute)\n- `$('div')`\n- `$(document).ready()...`\n- `.each()`\n- `$(function ()...` (shorthand for `$(document).ready()`)\n- `.find()`\n- `.hasClass()`\n- `$('#id')` (select by ID)\n- `.keyup()`\n- `.mouseenter()`\n- `.parent()`\n- `.prop('checked')`\n- `.removeAttr()`\n- `.removeClass()`\n- `.text()`\n- `$(this)`\n- `.toggleClass()`\n- `.val()` (get the value)\n\n---\n\n## Contributing to this project\n\nPlease refer to our [Contributing Guidelines](https://github.com/BadwaterBay/vaniquery/blob/master/CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdongskyler%2Fvaniquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdongskyler%2Fvaniquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdongskyler%2Fvaniquery/lists"}