# no-jquery

> Removes jQuery completely from the global window object

Latest version **0.0.2** (published 2015-04-27) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2015-04-27 |
| First published | 2015-04-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Merott Movahedi |
| Maintainers | merott |
| Keywords | jQuery |

## Links

- npm: https://www.npmjs.com/package/no-jquery
- Repository: https://github.com/Merott/no-jquery
- Issues: https://github.com/Merott/no-jquery/issues
- npm.io page: https://npm.io/package/no-jquery

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2015-04-27
- 0.0.1 — 2015-04-27

## README

# no-jquery

This library (if you can call it that) does a very simple thing: restoring the
original value of `$` and removing `jQuery` from the global `window` object.
  
## Why?

That's a good question. It sounds like a silly idea to include jQuery and then
use another *library* just to remove it, but sometimes it could be useful.

One use case is for when you need to include jQuery up to a certain
point, and then make sure that it's no longer used by subsequent scripts. In
my case, I wanted jQuery to be available for my `Chai` assertions using 
[`chai-jquery`](https://github.com/chaijs/chai-jquery), but not within the
application code itself. Using `chai-jquery` for DOM assertions is convenient,
but I don't need jQuery in my application, and want to make sure that any 
libraries that I use don't find jQuery on the global scope and try to use it 
during test execution. Also, if I were to use jQuery in my application, I'd
include it as a dependency through Bower, meaning that during test execution
jQuery would try to load twice, and that could be nasty!

Including this script will remove `$` and `jQuery` from the `window` and 
reassign it to `window.no$`, if jQuery is found in the first place.

## Install

Use bower:

```
bower install no-jquery --save-dev
```

Or NPM:

```
npm install no-jquery --save-dev
```


## Usage

Just include the script in the right place.

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