# jstools-http

> http jstool example

Latest version **0.0.37** (published 2016-03-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install jstools-http
pnpm add jstools-http
yarn add jstools-http
bun add jstools-http
```

## 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.37 |
| Published | 2016-03-23 |
| First published | 2015-04-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Jesús Manuel Germade Castiñeiras |
| Maintainers | jgermade |
| Keywords | javascript, jstools, demo |

## Links

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

## Dependencies (2)

- [q-promise](https://npm.io/package/q-promise.md) ^0.2.1
- [nitro-tools](https://npm.io/package/nitro-tools.md) ^0.1.10

## Recent versions

- 0.0.37 (latest) — 2016-03-23
- 0.0.36 — 2016-03-23
- 0.0.35 — 2016-03-23
- 0.0.34 — 2015-12-29
- 0.0.33 — 2015-12-29
- 0.0.28 — 2015-05-02
- 0.0.27 — 2015-05-02
- 0.0.25 — 2015-04-27

## README

jEngine: $http
================
[![Bower version](https://badge.fury.io/bo/jengine-http.svg)](http://badge.fury.io/bo/jengine-http)
[![npm version](https://badge.fury.io/js/jengine-http.svg)](http://badge.fury.io/js/jengine-http)
Installation
------------
```.sh
npm install jengine-http --save
```
or
```.sh
bower install jengine-http --save
```

Usage
-----
``` js
$http.get('/items.json', { prop1: 'value1' });
// GET .../items.json?prop1=value1

$http.post('/items.json', {
	prop1: 'value1'
});

$http.put('/items.json', {
	prop1: 'another value'
});

$http.delete('/items.json');

$http.patch('/items.json', {
	op: 'add', path: '/prop1', value: 'one more value'
});

$http.patch('/items.json')
	.remove('/prop1')
	.add('/list/-', { subprop: 'sample value' })
	.submit();
```

Cached URL
----------
``` js
var httpItems = $http('items.json');

httpItems.get({ prop1: 'value1' });

httpItems.post({ prop1: 'value1' });

httpItems.put({	prop1: 'another value' });

httpItems.delete();

httpItems.patch({
	op: 'add', path: '/prop1', value: 'one more value'
});

httpItems.patch()
	.remove('/prop1')
	.add('/list/-', { subprop: 'sample value' })
	.submit();
```

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