{"id":18306151,"url":"https://github.com/devbridie/unjquerify","last_synced_at":"2025-06-14T23:03:50.942Z","repository":{"id":72990068,"uuid":"132412698","full_name":"devbridie/unjquerify","owner":"devbridie","description":"AST-based tool for converting jQuery code to modern vanilla JavaScript","archived":false,"fork":false,"pushed_at":"2018-09-07T23:46:00.000Z","size":267,"stargazers_count":16,"open_issues_count":7,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T16:37:00.854Z","etag":null,"topics":["ast","babel-plugin","dom","jquery"],"latest_commit_sha":null,"homepage":"https://unjquerify.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devbridie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-07T05:45:06.000Z","updated_at":"2022-04-03T13:27:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"1526f9e7-ef73-401e-bb03-bdfc35be1a4e","html_url":"https://github.com/devbridie/unjquerify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devbridie/unjquerify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbridie%2Funjquerify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbridie%2Funjquerify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbridie%2Funjquerify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbridie%2Funjquerify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devbridie","download_url":"https://codeload.github.com/devbridie/unjquerify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbridie%2Funjquerify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259896128,"owners_count":22928330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ast","babel-plugin","dom","jquery"],"created_at":"2024-11-05T15:37:56.280Z","updated_at":"2025-06-14T23:03:50.919Z","avatar_url":"https://github.com/devbridie.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# unjQuerify\nUnjQuerify is a project that can assist developers in migrating code from jQuery to vanilla DOM APIs.\n\n**In**:\n```javascript\n$(\"#submit\").click(function() {\n    $(\"#output\").text(\"The button was clicked!\");\n    $(\".post\").hide();\n});\n```\n\n**Output**:\n```javascript\ndocument.getElementById(\"submit\").addEventListener(\"click\", function () {\n    document.getElementById(\"output\").textContent = \"The button was clicked!\";\n    document.getElementsByClassName(\"post\").map((_element) =\u003e _element.style.display = \"none\");\n});\n```\n\n## Built With\n* [`babel`](https://babeljs.io/) to build an AST and to transform nodes.\n\n## Usage\n\n### CLI\n* Ensure that `npm` is available.\n* Use `npm install` to install dependencies.\n* Run unjQuerify with the provided example script: `npm --silent start sample/simple.js`.\n* Verify that the console shows the transformed script.\n\n### As dependency\n* Ensure that `npm` is available.\n* Run `npm install unjquerify`.\n* Import unjQuerify's plugins using `require('unjquerify/build/src/all-plugins')`` or a similar method.\n\n## Contributing\nContributions are always welcome. Please see this [project's issue tracker](https://github.com/devbridie/unjquerify/issues).\n\nSome useful resources are the following: \n* [Babel Plugin Handbook](https://github.com/jamiebuilds/babel-handbook/blob/master/translations/en/plugin-handbook.md#babel-plugin-handbook)\n* [AST Explorer](https://astexplorer.net/#/gist/02b98eb0c96ef8d4762fb5a87a71b849/4ce7c810fc6e6aa48684a656f8b1b06b581e9b02)\n* [You Don't Need jQuery](https://github.com/nefe/You-Dont-Need-jQuery)\n* [jQuery API Documentation](http://api.jquery.com/)\n\nBefore submitting a pull request, please verify that your changes pass linting (run with `npm run lint`). Please include tests for new features.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevbridie%2Funjquerify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevbridie%2Funjquerify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevbridie%2Funjquerify/lists"}