# crossmania

> the node module for doing cross-domain CRUD with the browser

Latest version **0.2.8** (published 2012-03-20) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.8 |
| Published | 2012-03-20 |
| First published | 2011-11-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ge.tt |
| Maintainers | mafintosh |
| Keywords | cross-domain, cors, crud, browser, cross-browser |

## Links

- npm: https://www.npmjs.com/package/crossmania
- Homepage: https://github.com/gett/crossmania
- npm.io page: https://npm.io/package/crossmania

## Dependencies (3)

- [common](https://npm.io/package/common.md) >=0.2.0
- [router](https://npm.io/package/router.md) >=0.2.0
- [buffoon](https://npm.io/package/buffoon.md) >=0.1.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.2.8 (latest) — 2012-03-20
- 0.2.7 — 2012-03-13
- 0.2.6 — 2012-03-08
- 0.2.5 — 2012-03-07
- 0.2.4 — 2011-12-15
- 0.2.3 — 2011-12-01
- 0.2.2 — 2011-11-17
- 0.2.1 — 2011-11-17
- 0.2.0 — 2011-11-17

## README

# crossmania

talk crossdomain with your browser. it's available through npm:

	npm install crossmania

usage is simple:

``` js
var mania = require('crossmania'); // call .string() afterwards to talk raw strings

mania.get('/', function(request, respond) {
	respond({hello:'world'}); // yes we talk json
});
mania.post('/', function(request, data, respond) {
	respond(data); // we echo
});
mania.listen(80);

```

mania works by relying on `cors` based ajax if available (chrome, safari, firefox).  
for IE8+ and Opera it uses an iframe proxy frame and the `postMessage` api.
for IE7- and all others it falls back to an jsonp wrapper.  

In the browser use the [crossmania](http://github.com/gett/crossmania-js) available for client-side javascript

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