{"id":20438316,"url":"https://github.com/seebigs/dollar-js","last_synced_at":"2025-04-12T22:34:31.059Z","repository":{"id":12548399,"uuid":"54930070","full_name":"seebigs/dollar-js","owner":"seebigs","description":"A lighter, faster, modular, jQuery replacement","archived":false,"fork":false,"pushed_at":"2022-12-12T08:04:25.000Z","size":1875,"stargazers_count":16,"open_issues_count":6,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T05:41:31.392Z","etag":null,"topics":["dom","jquery-replacement","modular","selectors"],"latest_commit_sha":null,"homepage":"http://seebigs.github.io/dollar-js/","language":"JavaScript","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/seebigs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-28T23:11:43.000Z","updated_at":"2024-05-04T17:38:25.000Z","dependencies_parsed_at":"2023-01-13T17:00:40.205Z","dependency_job_id":null,"html_url":"https://github.com/seebigs/dollar-js","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seebigs%2Fdollar-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seebigs%2Fdollar-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seebigs%2Fdollar-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seebigs%2Fdollar-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seebigs","download_url":"https://codeload.github.com/seebigs/dollar-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248641848,"owners_count":21138278,"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":["dom","jquery-replacement","modular","selectors"],"created_at":"2024-11-15T09:10:24.597Z","updated_at":"2025-04-12T22:34:31.039Z","avatar_url":"https://github.com/seebigs.png","language":"JavaScript","readme":"# DollarJS\n\n**A lighter, faster, modular jQuery replacement (manipulate DOM, bind events, and more...)**\n\n[Homepage](http://seebigs.github.io/dollar-js) | [API Documentation](http://seebigs.github.io/dollar-js/api)\n\n## Download \u0026 Embed\n * [Full](https://raw.githubusercontent.com/seebigs/dollar-js/master/prebuilt/dollar.js) (dollar.js)\n * [Minified](https://raw.githubusercontent.com/seebigs/dollar-js/master/prebuilt/dollar.min.js) (dollar.min.js)\n```html\n\u003cscript src=\"dollar.min.js\"\u003e\u003c/script\u003e\n```\n\n## Install \u0026 Require\nAvailable as an [NPM package](https://www.npmjs.com/package/dollar-js)\n```\n$ npm install dollar-js --save\n```\n```js\nvar $ = require('dollar-js');\n```\n\n## Simple Usage\nSee more examples in our [API Documentation](http://seebigs.github.io/dollar-js/api)\n```js\nvar $body = $('body').css({ background: '#369' });\n$body.addClass('foo').on('click', function () { console.log(this.className); });\n```\n\n## Need Ajax?\nFor optimal performance, Ajax features are not included in DollarJS by default. If you need them, simply add the [DollarJS Ajax Plugin](https://github.com/seebigs/dollar-js-ajax) to your page alongside the original library.\n```html\n\u003cscript src=\"dollar.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"dollar.ajax.js\"\u003e\u003c/script\u003e\n```\n\n---\n\n# Under the Hood\n\n## Install the development package\n\nFrom Github\n```\n$ git clone git@github.com:seebigs/dollar-js.git\n$ cd dollar-js\n$ npm install\n```\n\nFrom NPM\n```\n$ npm install dollar-js\n$ cd node_modules/dollar-js\n$ npm install\n```\n\n## How Much Faster Are We Talking?\nIn the current build, we clock ourselves at over **4x faster** on average across various operations!\n\nSee for yourself\n```\n$ npm run benchmark\n```\n\n## We Are Modular!\nIf you need a custom build\n```\n$ npm run build --modules=core,animate,style\n$ cat prebuilt/dollar.min.js\n```\nAvailable Modules:\n- *core (always included)*\n- animate\n- compat\n- filter\n- mutate\n- readwrite\n- style\n- traverse\n- trigger\n\n## Test Coverage\n\nWe have strong test coverage that compares DollarJS behavior against similar methods in jQuery and against expected results on a fixtured document\n```\n$ npm run test\n$ node bundl test --run=path/in/spec.js\n$ node bundl test --run=path/to/category\n```\nCurrently, these unit tests only run in a Node.js environment, but we have plans to expand our automated coverage across browsers.\n\n---\n\n# Contribute\nHelp us make DollarJS as useful and compatible as possible.\n\n## Bugs\n\nReport and discuss [issues on Github](https://github.com/seebigs/dollar-js/issues)\n\nPlease review our [limitations](http://seebigs.github.io/dollar-js/limitations/) and help us to overcome them.\n\n## Write Code\n\nContribute changes using the following steps:\n 1. Create a new feature branch from the latest master, then make and save your changes\n 2. Run `npm run test` and ensure that all tests pass\n 2. Commit your changes to your branch\n 3. Add a [pull request](https://github.com/seebigs/dollar-js/pulls) and get some code review\n 4. Merge your branch into master\n\nPublish the latest changes:\n 1. Increment the DollarJS version number in package.json following [semantic versioning](https://www.sitepoint.com/semantic-versioning-why-you-should-using/) (\"x.y.1\" -\u003e \"x.y.2\")\n 2. Commit this change to master with the new version number in your message (\"CB: npm publish x.y.2\")\n 3. Run `npm publish` from the project root\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseebigs%2Fdollar-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseebigs%2Fdollar-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseebigs%2Fdollar-js/lists"}