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

signalsjs

v1.1.19

Published

A light javascript toolset for working with plain old javascript. Focusing on browser compatibility down to IE8 and abstracting common patterns to write less code.

Downloads

5

Readme

npm install signalsjs

Function Reference

find(selector) [chainable]

animate() [chainable] [polyfill-raf] [easing]

ajax()

Class Helpers

hasClass(class)

addClass(class) [chainable] [supports multiple]

removeClass(class) [chainable] [supports multiple]

swapClass(removeClass, addClass) [chainable] [supports multiple]

toggleClass(class) [chainable]

String Helpers

capitalize(log) [chainable] [supports multiple]

Boolean helpers

isWidthLessThan(width)

isTouchDevice()

isElementInViewport()

Event Helpers

addListeners(ev, func, useCapture) [chainable] [supports multiple]

noReturn(e)

Element Helpers

getPosition()

getTransitionDuration()

Changelog

March 27th 2015 v1.1.17 => v1.1.19

  • Fixed a bug with the find method which was causing the el property to be set to an array instead of null if certain types of selectors were used and their items not found.

March 19th 2015 v1.1.13 => v1.1.17

  • If selecting an element that doesn't exist, Sjs(obj).el will be equal to null instead of none or an empty nodeList
  • added a toggleClass method as submitted by Sam Hoult. Only supports one element for now, could be extended to support multiple

February 4th 2015 v1.1.11 => v1.1.13

  • Add'ed Uglified file & Uglify command

February 4th 2015 v1.1.9 => v1.1.11

  • intigrated easing & requestAnimationFrame polyfill into file so eliminate the need for extra files

February 3th 2015 v1.1.3 => v1.1.9

  • Formatting and getting everything setup in NPM

January 26th 2015 v1.1.2 => v1.1.3

  • Replaced .trim() in removeClass with a regex for ie8 compatibility

January 15th 2015 v1.1.1 => v1.1.2

  • Added commonjs support with AMD / Native environments as the backup

January 14th 2015 v1.1.0 => v1.1.1

  • Altered addClass, removeClass, capitalize & getPosition functions to not modify this.el and instead create a scoped copy for processing. This fixes a bug that chances SignalsJs.el down the logic chain when running multiple functions over the same instance. getPosition had a while loop removed, not sure why it was there in the first place.

Uglify Command

uglifyjs Signals.js -m -c sequences=true,dead_code=true,conditionals=true,booleans=true,unused=true,if_return=true,join_vars=true,drop_console=true -o Signals.min.js