# http-listen

> Helps me set up an HTTP server for one-function modules.

Latest version **1.0.0** (published 2017-11-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install http-listen
pnpm add http-listen
yarn add http-listen
bun add http-listen
```

## 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.0 |
| Published | 2017-11-15 |
| First published | 2017-11-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | M.K. |
| Maintainers | mk-pmb |

## Links

- npm: https://www.npmjs.com/package/http-listen
- Repository: https://github.com/mk-pmb/http-listen-node
- Homepage: https://github.com/mk-pmb/http-listen-node/#readme
- Issues: https://github.com/mk-pmb/http-listen-node/issues
- npm.io page: https://npm.io/package/http-listen

## Recent versions

- 1.0.0 (latest) — 2017-11-15

## README

<!--#echo json="package.json" key="name" underline="=" -->
http-listen
===========
<!--/#echo -->

<!--#echo json="package.json" key="description" -->
Helps me set up an HTTP server for one-function modules.
<!--/#echo -->


Usage
-----

from [howto.js](howto.js):

<!--#include file="howto.js" start="  //#u" stop="  //#r"
  outdent="  " code="javascript" -->
<!--#verbatim lncnt="8" -->
```javascript
module.exports = function (req, res) {
  res.setHeader('Content-Type', 'text/json; charset=UTF-8');
  res.write(JSON.stringify(req.headers, null, 2) + '\n');
  res.end();
};
require('http-listen')(module).loudListen();
```
<!--/include-->


<!--#toc stop="scan" -->



Known issues
------------

* Needs more/better tests and docs.




&nbsp;


License
-------
<!--#echo json="package.json" key=".license" -->
ISC
<!--/#echo -->

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