Skip to content

remy/express-router-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Mounts and watches a single file express router for quick testing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published