# expressq

> Faster and simpler ExpressJS prototyping and application building.

Latest version **1.0.4** (published 2017-08-06) · ISC license · 0 weekly downloads

## Install

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

## 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.0.4 |
| Published | 2017-08-06 |
| First published | 2017-08-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mcrocks999 |

## Links

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

## Dependencies (1)

- [express](https://npm.io/package/express.md) ^4.15.3

## Recent versions

- 1.0.4 (latest) — 2017-08-06
- 1.0.3 — 2017-08-06
- 1.0.2 — 2017-08-05
- 1.0.1 — 2017-08-05
- 1.0.0 — 2017-08-05

## README

# expressq
Faster and simpler ExpressJS prototyping and application building.

[![NPM](https://nodei.co/npm/expressq.png)](https://nodei.co/npm/expressq/)

```js
// quickly build an express application with expressq
require('expressq')(5000, (app) => { /* single page serving example */
	// app.get, app.post, ..
	app.static('/','html/index.html');
});
// easily build multiple apps and take advantage of inbuilt customisable error reporting
require('expressq')(3000, (app) => {
	// supports standard ExpressJS methods
	app.get('/dynamic',(req, res) => {res.send(new Date())});
	// load, modify and send files with ease
	app.getFile('/time','html/dynamic.html',(req,res,file) => {
		file = file.replace(/<%time%>/g, new Date());
		res.send(file);
	});
	// create static files with just one line
	app.static('/','html/index.html');
	app.static('/throw500','html/does_not_exist.html');
	// modify error messages for requests ranging from [HTML, JSON, plaintext]
	app.confSet('err404_html', 'Oops! Couldn\'t find what you were looking for!');
}, () => {
	// if this function exists and is passed to expressq
	// it will be run when your app starts instead of the
	// default message
	console.log('Started!');
});
// also supports customisable 500 errors
```

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