# fernie

> Functional routing for node http

Latest version **0.0.6** (published 2021-07-10) · MIT license · 0 weekly downloads

## Install

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

## 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.6 |
| Published | 2021-07-10 |
| First published | 2021-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 15.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | raywiis |
| Maintainers | raywiis |

## Links

- npm: https://www.npmjs.com/package/fernie
- Repository: https://github.com/raywiis/fernie
- npm.io page: https://npm.io/package/fernie

## Dependencies (5)

- [esm](https://npm.io/package/esm.md) ^3.2.25
- [ts-node](https://npm.io/package/ts-node.md) ^9.1.1
- [typescript](https://npm.io/package/typescript.md) ^4.2.4
- [esm-ts-node](https://npm.io/package/esm-ts-node.md) ^1.0.7
- [path-to-regexp](https://npm.io/package/path-to-regexp.md) ^6.2.0

## Recent versions

- 0.0.6 (latest) — 2021-07-10
- 0.0.5 — 2021-07-10
- 0.0.4 — 2021-07-10
- 0.0.3 — 2021-07-10
- 0.0.2 — 2021-07-10
- 0.0.1 — 2021-06-06

## README

# Fernie

> STILL IN DESIGN!! I don't recommend you use it for anything yet.

Minimal http routing

```js
const http = require('http');
const { makeHandler, paths, respond } = require('fernie');

const routes = paths({
	'/hello': methods({
		'GET': () => respond("Hello, World");
	});
})

const server = http.createServer(makeHandler(routes))
server.listen(3000);
```

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