# iopa-mount

> Mount other IOPA applications or middleware to a given pathname

Latest version **1.4.1** (published 2016-07-05) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install iopa-mount
pnpm add iopa-mount
yarn add iopa-mount
bun add iopa-mount
```

## 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.4.1 |
| Published | 2016-07-05 |
| First published | 2015-09-03 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | iopa |
| Maintainers | iopa |
| Keywords | iopa, limerun, owin, middleware, router, route, http, connect, express, promise, async, framework, node, tasks |

## Links

- npm: https://www.npmjs.com/package/iopa-mount
- Repository: https://github.com/iopa-io/iopa-mount
- Homepage: http://iopa.io
- Issues: https://github.com/iopa-io/iopa-mount/issues
- npm.io page: https://npm.io/package/iopa-mount

## Dependencies (1)

- [iopa](https://npm.io/package/iopa.md) ^1.4.0

## Alternatives

- [express-promise-router](https://npm.io/package/express-promise-router.md) — 736.1K weekly downloads
- [next-usequerystate](https://npm.io/package/next-usequerystate.md) — 29.8K weekly downloads
- [@bitkyc08/opencodex](https://npm.io/package/@bitkyc08/opencodex.md) — 4.6K weekly downloads
- [lynkr](https://npm.io/package/lynkr.md) — 575 weekly downloads
- [baremetal.js](https://npm.io/package/baremetal.js.md) — 42 weekly downloads

## Recent versions

- 1.4.1 (latest) — 2016-07-05
- 1.3.1 — 2015-09-23
- 1.2.2 — 2015-09-23
- 1.2.1 — 2015-09-17
- 0.5.3 — 2015-09-15
- 0.5.1 — 2015-09-03
- 0.5.0 — 2015-09-03

## README

# [![IOPA](http://iopa.io/iopa.png)](http://iopa.io)<br> iopa-mount

[![Build Status](https://api.shippable.com/projects/55f871f91895ca447415931e/badge?branchName=master)](https://app.shippable.com/projects/55f871f91895ca447415931e)
[![NPM](https://img.shields.io/badge/iopa-certified-99cc33.svg?style=flat-square)](http://iopa.io/)
[![limerun](https://img.shields.io/badge/limerun-certified-3399cc.svg?style=flat-square)](https://nodei.co/npm/limerun/)

[![NPM](https://nodei.co/npm/iopa-mount.png?downloads=true)](https://nodei.co/npm/iopa/)

## About

Mount other IOPA applications or middleware to a given pathname

## Usage

```js
npm install iopa-mount --save
```

```js
app.mount(path, function(context){});
```

### Example

```js
const iopa = require('iopa'),
  iopaMount = require('./index'),
  IOPA = iopa.constants.IOPA
 
var app = new iopa.App();

app.mount("/test", function (context, next) {
  context.log.info("HELLO WORLD");
   return Promise.resolve(null);
});

var demo = app.build();

var context = new iopa.Factory().createRequest("http://localhost/test/hello", "GET");
demo(context);

iopaFactory.dispose(context);
```

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