
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A lighter, faster, modular jQuery replacement (manipulate DOM, bind events, and more...)
A lighter, faster, modular jQuery replacement (manipulate DOM, bind events, and more...)
<script src="dollar.min.js"></script>
Available as an NPM package
$ npm install dollar-js --save
var $ = require('dollar-js');
See more examples in our API Documentation
var $body = $('body').css({ background: '#369' });
$body.addClass('foo').on('click', function () { console.log(this.className); });
For optimal performance, Ajax features are not included in DollarJS by default. If you need them, simply add the DollarJS Ajax Plugin to your page alongside the original library.
<script src="dollar.js"></script>
<script src="dollar.ajax.js"></script>
From Github
$ git clone git@github.com:seebigs/dollar-js.git
$ cd dollar-js
$ npm install
From NPM
$ npm install dollar-js
$ cd node_modules/dollar-js
$ npm install
In the current build, we clock ourselves at over 4x faster on average across various operations!
See for yourself
$ npm run benchmark
If you need a custom build
$ npm run build --modules=core,animate,style
$ cat prebuilt/dollar.min.js
Available Modules:
We have strong test coverage that compares DollarJS behavior against similar methods in jQuery and against expected results on a fixtured document
$ npm run test
$ node bundl test --run=path/in/spec.js
$ node bundl test --run=path/to/category
Currently, these unit tests only run in a Node.js environment, but we have plans to expand our automated coverage across browsers.
Help us make DollarJS as useful and compatible as possible.
Report and discuss issues on Github
Please review our limitations and help us to overcome them.
Contribute changes using the following steps:
npm run test and ensure that all tests passPublish the latest changes:
npm publish from the project rootFAQs
A lighter, faster, modular jQuery replacement (manipulate DOM, bind events, and more...)
We found that dollar-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.