# signalsjs

> 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.

Latest version **1.1.19** (published 2015-03-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install signalsjs
pnpm add signalsjs
yarn add signalsjs
bun add signalsjs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.19 |
| Published | 2015-03-27 |
| First published | 2015-02-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Signals Design Group |
| Maintainers | signals |

## Links

- npm: https://www.npmjs.com/package/signalsjs
- npm.io page: https://npm.io/package/signalsjs

## Recent versions

- 1.1.19 (latest) — 2015-03-27
- 1.1.18 — 2015-03-27
- 1.1.17 — 2015-03-19
- 1.1.16 — 2015-03-19
- 1.1.15 — 2015-02-11
- 1.1.14 — 2015-02-11
- 1.1.13 — 2015-02-04
- 1.1.12 — 2015-02-04
- 1.1.11 — 2015-02-04
- 1.1.10 — 2015-02-04
- 1.1.9 — 2015-02-04
- 1.1.8 — 2015-02-04
- 1.1.7 — 2015-02-04
- 1.1.6 — 2015-02-04
- 1.1.5 — 2015-02-04
- … 2 more at https://npm.io/package/signalsjs/versions

## 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`

---
_Source: https://npm.io/package/signalsjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
