# sodor

> controller dispatching for livewire

Latest version **1.1.1** (published 2014-12-06) · MIT license · 0 weekly downloads

## Install

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

## 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.1.1 |
| Published | 2014-12-06 |
| First published | 2014-06-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Matt Brennan |
| Maintainers | quarterto |
| Keywords | livewire, controller, mvc, rails, gusto |

## Links

- npm: https://www.npmjs.com/package/sodor
- Repository: https://github.com/quarterto/Sodor
- Issues: https://github.com/quarterto/Sodor/issues
- npm.io page: https://npm.io/package/sodor

## Dependencies (5)

- [curry](https://npm.io/package/curry.md) ^1.2.0
- [traceur](https://npm.io/package/traceur.md) 0.0.72
- [livewire](https://npm.io/package/livewire.md) ^0.5.1
- [get-parameter-names](https://npm.io/package/get-parameter-names.md) ^0.2.0
- [traceur-annotations](https://npm.io/package/traceur-annotations.md) ^1.0.0

## Recent versions

- 1.1.1 (latest) — 2014-12-06
- 1.1.0 — 2014-11-02
- 1.0.0 — 2014-11-01
- 0.3.1 — 2014-08-16
- 0.3.0 — 2014-08-09
- 0.2.1 — 2014-07-28
- 0.2.0 — 2014-07-25
- 0.1.0 — 2014-06-07

## README

<h1 align="center">
Sodor<br>
<a href="https://travis-ci.org/quarterto/Sodor"><img src="https://travis-ci.org/quarterto/Sodor.svg?branch=develop"></a>
</h1>

Controller dispatching for Livewire. Which lets you write routes like

```javascript
class Post extends Controller {
  read(id) { ... }
  @put update(id) { ... }
  @post delete(id) { ... }
}
/* ES6 with Traceur annotations */
```

where the function arguments become URL parameters and http method decorators do what you think.

## Installation

`npm install sodor`

## Usage

Declare a few controller classes, then call e.g. `Post.routes()` and pass it to `livewire.route`.

For more information see the [API docs](https://github.com/quarterto/Sodor/wiki/index)

## Licence

MIT. &copy; 2014 Matt Brennan

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