# mount-routes

> mount-routes = auto mount express routes with routes_folder_path

Latest version **1.0.8** (published 2017-04-21) · ISC license · 0 weekly downloads

## Install

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

## 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.8 |
| Published | 2017-04-21 |
| First published | 2015-06-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | i5ting |
| Maintainers | i5ting |
| Keywords | express, routes, route, mount, require, directory |

## Links

- npm: https://www.npmjs.com/package/mount-routes
- Repository: https://github.com/i5ting/mount-routes
- Homepage: https://github.com/i5ting/mount-routes#readme
- Issues: https://github.com/i5ting/mount-routes/issues
- npm.io page: https://npm.io/package/mount-routes

## Dependencies (3)

- [debug](https://npm.io/package/debug.md) ^2.2.0
- [cli-table](https://npm.io/package/cli-table.md) ^0.3.1
- [require-directory](https://npm.io/package/require-directory.md) ^2.1.1

## 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.0.8 (latest) — 2017-04-21
- 1.0.7 — 2017-04-20
- 1.0.6 — 2015-12-15
- 1.0.5 — 2015-12-02
- 1.0.4 — 2015-12-02
- 1.0.3 — 2015-06-02
- 1.0.2 — 2015-06-01
- 1.0.1 — 2015-06-01
- 1.0.0 — 2015-06-01

## README

# mount-routes

mount-routes = auto mount express routes with routes_folder_path

[![gitter][gitter-image]][gitter-url]
[![NPM version][npm-image]][npm-url]

## Install

    npm install --save mount-routes

## Usages


```
var express = require('express')
var app = express()

var mount = require('mount-routes');

// simple
// mount(app);
// with path
// mount(app, __dirname + '/routes2');

// with path & api dump
mount(app,  __dirname + '/routes2', true);

// start server
app.listen(23018)
```

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request


## 版本历史

- v1.0.3 add api dump feature
- v1.0.2 rename index to /
- v1.0.0 初始化版本


## 欢迎fork和反馈

- write by `i5ting` shiren1118@126.com

如有建议或意见，请在issue提问或邮件

## License

this repo is released under the [MIT
License](http://www.opensource.org/licenses/MIT).


[npm-image]: https://img.shields.io/npm/v/mount-routes.svg?style=flat-square
[npm-url]: https://npmjs.org/package/mount-routes
[gitter-image]: https://badges.gitter.im/Join%20Chat.svg
[gitter-url]: https://gitter.im/i5ting/mount-routes?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

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