# pragma-express

> uso ``` import { Service } from "pragma-express" import {Request, Response, Router} from 'express'

Latest version **1.0.10** (published 2022-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install pragma-express
pnpm add pragma-express
yarn add pragma-express
bun add pragma-express
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.10 |
| Published | 2022-11-22 |
| First published | 2022-11-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 16.8 KB |
| Known vulnerabilities | 0 (+5 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Jamer Pinto |
| Maintainers | jamer.pinto |

## Links

- npm: https://www.npmjs.com/package/pragma-express
- Repository: https://github.com/HammerPragma/pragma-express
- Homepage: https://github.com/HammerPragma/pragma-express#readme
- Issues: https://github.com/HammerPragma/pragma-express/issues
- npm.io page: https://npm.io/package/pragma-express

## Dependencies (7)

- [cors](https://npm.io/package/cors.md) 2.8.5
- [dotenv](https://npm.io/package/dotenv.md) 16.0.3
- [helmet](https://npm.io/package/helmet.md) 6.0.0
- [morgan](https://npm.io/package/morgan.md) 1.10.0
- [express](https://npm.io/package/express.md) 4.18.2
- [body-parser](https://npm.io/package/body-parser.md) 1.20.1
- [http-status](https://npm.io/package/http-status.md) 1.5.3

## Recent versions

- 1.0.10 (latest) — 2022-11-22
- 1.0.9 — 2022-11-22
- 1.0.8 — 2022-11-22
- 1.0.7 — 2022-11-22
- 1.0.6 — 2022-11-22
- 1.0.5 — 2022-11-22
- 1.0.4 — 2022-11-22
- 1.0.3 — 2022-11-22
- 1.0.1 — 2022-11-22
- 1.0.0 — 2022-11-22

## README

# pragma-express

uso 
```
import { Service } from "pragma-express"
import {Request, Response, Router} from 'express'

const router: Router = Router()

router.get('/', (req: Request, res: Response) => {res.status(200).send('Service is working correctly!')})

class ServiceAPI extends Service {
    constructor() {
        super();
    }

    public setRoutes(): void {
        this.express.use('/api/', router)
    }
}
const PORT = 3030
const service = new ServiceAPI()

service.express.listen(PORT, () => {
    console.log(`Server is listening on ${PORT}`)
})```

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