# poom

> Pure nodejs framework, extreme fast and light weight which is written by typescript

Latest version **1.0.1** (published 2019-03-15) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-03-15 |
| First published | 2018-10-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 11 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Author | onapis.com@gmail.com |
| Maintainers | onapis |

## Links

- npm: https://www.npmjs.com/package/poom
- npm.io page: https://npm.io/package/poom

## Dependencies (2)

- [poom-log](https://npm.io/package/poom-log.md) ^1.0.3
- [poom-utils](https://npm.io/package/poom-utils.md) ^1.0.1

## Recent versions

- 1.0.1 (latest) — 2019-03-15
- 1.0.0 — 2019-01-29
- 0.0.2 — 2018-10-15
- 0.0.1 — 2018-10-14

## README

# poom
Pure nodejs framework, EXTREME FAST and LIGHT WEIGHT. 
It is optimized for large projects. And of course, it get best performance
"poom" is not bundled with any middleware. 
It's only nodejs native

# Installation
```nodejs  
npm i poom -S
```

# Examples

### Typescript
```nodejs
import { Server, ServerConfig } from 'poom'

const yourMiddleware = async (ctx: Context, next: Function) => {
  // Return error
  if(ctx.query.isError) ctx.throws(401, 'error');

  // Return data
  ctx.data = {
    msg: 'Hello world!'
  }
  
  await next()
}

ServerConfig({
  logger: Logger.pool(),
  errorOn: {
    responseStatus: true,
    responseBody: true
  }
})

Server.use(yourMiddleware)

Server.listen({
  port: 3000,
  name: 'Test app'
}, () => {
  console.log('Callback here')
})
```

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