npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dollar-js

v2.2.1

Published

A lighter, faster, modular jQuery replacement (manipulate DOM, bind events, and more...)

Downloads

330

Readme

DollarJS

A lighter, faster, modular jQuery replacement (manipulate DOM, bind events, and more...)

Homepage | API Documentation

Download & Embed

<script src="dollar.min.js"></script>

Install & Require

Available as an NPM package

$ npm install dollar-js --save
var $ = require('dollar-js');

Simple Usage

See more examples in our API Documentation

var $body = $('body').css({ background: '#369' });
$body.addClass('foo').on('click', function () { console.log(this.className); });

Need Ajax?

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>

Under the Hood

Install the development package

From Github

$ git clone [email protected]:seebigs/dollar-js.git
$ cd dollar-js
$ npm install

From NPM

$ npm install dollar-js
$ cd node_modules/dollar-js
$ npm install

How Much Faster Are We Talking?

In the current build, we clock ourselves at over 4x faster on average across various operations!

See for yourself

$ npm run benchmark

We Are Modular!

If you need a custom build

$ npm run build --modules=core,animate,style
$ cat prebuilt/dollar.min.js

Available Modules:

  • core (always included)
  • animate
  • compat
  • filter
  • mutate
  • readwrite
  • style
  • traverse
  • trigger

Test Coverage

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.


Contribute

Help us make DollarJS as useful and compatible as possible.

Bugs

Report and discuss issues on Github

Please review our limitations and help us to overcome them.

Write Code

Contribute changes using the following steps:

  1. Create a new feature branch from the latest master, then make and save your changes
  2. Run npm run test and ensure that all tests pass
  3. Commit your changes to your branch
  4. Add a pull request and get some code review
  5. Merge your branch into master

Publish the latest changes:

  1. Increment the DollarJS version number in package.json following semantic versioning ("x.y.1" -> "x.y.2")
  2. Commit this change to master with the new version number in your message ("CB: npm publish x.y.2")
  3. Run npm publish from the project root