This is my public site, its using Preact with ParcelJs and Styled Components. Its deployed to github pages and using Cloudflare to handle inbound traffic (and SSL).
express-list-routes's Introduction
express-list-routes's People
Forkers
yuukinajima omgimalexis idchlife rahul-mahato hunglsxx sanjay-arya eduardosanzb rottriges handfish augusto-joecoffee a-halawany kamalyusuf jonstorer yutak23 15fathomsexpress-list-routes's Issues
[Enhancement Suggestion] return router list as json object
For rich APIs it would be good to be able to create a JSON object. With this object you could then create an API management in a frontend for example. I have already extended the package and will create a pull request.
Support custom logger
Thank you for authoring this! It is very helpful. It'd be awesome if you supported a custom logger / overriding the method used for logging.
[feature request] Add NestJS usage
Happy new year! ๐
Excellent package! Thanks to the team. ๐ฅ๐
This time I want to submit a feature request:
Add NestJS usage.
expressListRoutes(app.getHttpAdapter().getInstance())
Also add a note on importing it like import expressListRoutes from 'express-list-routes'
by enabling esModuleInterop
in tsconfig.json
of a NestJS app.
Unnecessary prefix on Windows
In windows OS, the log will shows file path instead of just route path
GET D:\my-route
Example app listening on port 3000
Probably because of `path.resolve``` before the log
custom logger has not been released
Hello,
Can you release a new version ?
I just installed the last version and the custom logger options is not available #9 .
Thanks
Usage with NestJS
Getting errors with the imports.
import expressListRoutes from 'express-list-routes'
import * as expressListRoutes from 'express-list-routes'
import {default as expressListRoutes } from 'express-list-routes'
...
const expressListRoutes = await import('express-list-routes')
const {default: expressListRoutes} = await import('express-list-routes')
const expressListRoutes = (await import('express-list-routes')).default
needs IRouter?
I tried to use expressListRoutes within my node.js/typescript app.
import expressListRoutes from 'express-list-routes';
const routes = express.Router();
...
console.log('::: Available routes are:');
expressListRoutes(routes);
which gave:
src/routes/index.ts:15:19 - error TS2345: Argument of type 'Router' is not assignable to parameter of type 'ExpressApp'.
Property '_router' is missing in type 'IRouter' but required in type 'ExpressApp'.
any information or hint, where I might be using it wrongly?
suppress logger
Hello. I firstly want to thank you for creating this. It's quite helpful.
I have a question regarding the logger. Is there a way to not send logs to console? Basically turn off the logger.
List all routes in app
I use bunch of routers in my express 4 app and I'd like to list all routes in app. Is it possible to achieve this with express-list-routes?
Nested routers are not handled?
It does not seem to handle nested routers.
Is this library outdated?
typescript typings
would be nice
great work but can you tell us what it returns?
expressListRoutes({ prefix: '/api/v1' }, 'API:', router );
appears to log the routes
but can you be clear in your docs about what the function returns?
thanx
Versions of lodash before 4.17.5 are vulnerable to prototype pollution.
Lodash needs to be upgraded as per the advice below
https://nodesecurity.io/advisories/577
https://snyk.io/vuln/npm:lodash:20180130
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.