# najax

> jquery ajax-stye http requests in node

Latest version **1.0.7** (published 2021-06-10) · MIT license · 0 weekly downloads

## Install

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

## 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.7 |
| Published | 2021-06-10 |
| First published | 2012-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.4.3 |
| Dependencies | 3 |
| Unpacked size | 114.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 53 |
| Author | Alan Clarke |
| Maintainers | doublerebel, alz |

## Links

- npm: https://www.npmjs.com/package/najax
- Repository: https://github.com/najaxjs/najax
- Issues: https://github.com/najaxjs/najax/issues
- npm.io page: https://npm.io/package/najax

## Dependencies (3)

- [qs](https://npm.io/package/qs.md) ^6.2.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [jquery-deferred](https://npm.io/package/jquery-deferred.md) ^0.3.0

## Recent versions

- 1.0.7 (latest) — 2021-06-10
- 1.0.6 — 2021-06-10
- 1.0.5 — 2021-06-09
- 1.0.4 — 2018-08-10
- 1.0.3 — 2017-04-03
- 1.0.2 — 2017-03-15
- 1.0.1 — 2017-02-01
- 1.0.0 — 2017-01-15
- 0.7.1 — 2016-06-10
- 0.7.0 — 2016-06-02
- 0.6.0 — 2016-05-25
- 0.4.0 — 2016-01-21
- 0.3.2 — 2016-01-06
- 0.3.1 — 2015-11-26
- 0.3.0 — 2015-11-26
- … 10 more at https://npm.io/package/najax/versions

## README

# najax

[![Travis CI](https://travis-ci.org/najaxjs/najax.svg?branch=master)](https://travis-ci.org/najaxjs/najax)
[![Dependency Status](https://david-dm.org/najaxjs/najax.svg)](https://david-dm.org/najaxjs/najax)
[![devDependency Status](https://david-dm.org/najaxjs/najax/dev-status.svg)](https://david-dm.org/najaxjs/najax#info=devDependencies)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)


jQuery ajax-stye http requests in node

jQuery ajax is stupid simple. This project provides a lightweight wrapper for the nodejs http request object that enables jquery ajax style syntax when making serverside requests to other webpages in node.js

In addition to najax.get, , handles ssl and makes some reasonable assumptions based on inputs and everything can be overridden by passing an options object.

## Getting Started
Install the module with: `npm install najax`

```javascript
var najax = $ = require('najax')
$.get('http://www.google.com', callback)
najax('http://www.google.com', { type: 'POST' }, callback)
najax({ url: 'http://www.google.com', type: 'POST', success: callback })
najax({ url: 'http://www.google.com', type: 'POST' })
  .success(callback)
  .error(errorHandler)

$.get, $.post, $.put, $.delete...
```

## Run unit tests
- npm install && npm test

## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [standardjs](https://github.com/feross/standard).

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