express-router-cli
Mounts and watches a single file express router for quick testing.
Last updated 2 years ago by remy .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install express-router-cli 
SYNC missed versions from official npm registry.

express-router-cli

This is a tiny utility for testing express routes.

npm install -g express-router-cli
# now the router is installed
❯ router ../mysite/route/api
> Mounted on http://localhost:5001
- http://localhost:5001/
- http://localhost:5001/:year/:slug?

+ watching ../mysite/route/api/*
  • Includes CORS by default
  • Auto selects an open port from 5000 upwards
  • Watches all required files (excluding node_modules) and auto reloads all routes with a visual diff of new or removed routes
  • Unhandled rejections will automatically restart the server, dropping existing (hanging) connections
  • Supports express routes. Possibly other kinds, not sure!

License

Current Tags

  • 1.5.3                                ...           latest (2 years ago)

14 Versions

  • 1.5.3                                ...           2 years ago
  • 1.5.2                                ...           2 years ago
  • 1.5.1                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.4.0                                ...           2 years ago
  • 1.2.2                                ...           2 years ago
  • 1.2.1                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 28
Dependencies (9)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |