# cms7-jquery

> - ### __log__: which is a shortcut for console.log - ### __$__ and __jQuery__: the jquery's famous $ and jQuery variable - ### __stackTrace function() -> Error__: returns an error object containing current stack trace - ### __logStackTrace function() -

Latest version **1.0.6** (published 2019-02-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install cms7-jquery
pnpm add cms7-jquery
yarn add cms7-jquery
bun add cms7-jquery
```

## 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.0.6 |
| Published | 2019-02-23 |
| First published | 2019-02-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 14.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | saeidfarahi |

## Links

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

## Dependencies (2)

- [jquery](https://npm.io/package/jquery.md) ^3.3.1
- [es6-promise](https://npm.io/package/es6-promise.md) ^4.2.6

## Recent versions

- 1.0.6 (latest) — 2019-02-23
- 1.0.5 — 2019-02-23
- 1.0.4 — 2019-02-23
- 1.0.3 — 2019-02-22
- 1.0.2 — 2019-02-22
- 1.0.1 — 2019-02-22
- 1.0.0 — 2019-02-22

## README

# jQuery & javascript extensions

## Adds following to __window__ variable:
- ### __log__: which is a shortcut for console.log
- ### __$__ and __jQuery__: the jquery's famous $ and jQuery variable
- ### __stackTrace function() -> Error__: returns an error object containing current stack trace
- ### __logStackTrace function() -> void__: prints current stack trace in console

## Adds the following methods to any __jQuery__ variable:
- ### __hasAttr function (name) -> Boolean__: checks if a jquery object has the given attribute.
    > $('.test').hasAttr('id')
- ### __equals function(jQueryObject) -> Boolean__: checks if a jquery object equals the given jquery object. 
    > $('.test').equals($('.test'))
- ### __outerHTML function() -> String__: returns the jquery object's outer html.
    > $('.test').outerHTML()

## Adds the following methods to javascript __Number__:
- ### __padZero function(size) -> String__: inserts 0s before a number until the length is equal to _size_ parameter
    > var x = 123; <br/>
    > x.padZero(5) <br/>
    > prints: 00123
- ### __format function(separator = ',') -> String__: thousand separator for mostly currencies
    > var x = 123000; <br>
    > x.format('/') <br>
    > prints: 123/000
## Adds the following methods to javascript __String__:
- ### __format function(templateString, ...args)__: just like c# String.format
    > String.format('Hi, {0}', 'Akbar') <br/>
    > prints: Hi, Akbar
## Adds the following to __FormData__:
- ### __print function() -> String__: prints FormData object
- ### __put function(object) -> FormData__: puts all properties of object recursively into FormData
## jQuery __classes__ polyfill for IE 
### will be automatically injected on import
## __IE10 viewport__ hack for Surface/desktop Windows 8 bug
### will be automatically injected on import
## fix for __safari__ bug on __readonly input__
### will be automatically injected on import

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