Code Monkey home page Code Monkey logo

console-express-routes's Introduction

console-express-routes test

As follows, output logs the routes registered with the Express.

img

Installation

npm

$ npm install console-express-routes

yarn

$ yarn add console-express-routes

Usage

TypeScript

import express from 'express';
import consoleExpressRoutes from 'console-express-routes';

const app = express();

app.get('/', (req: Request, res: Response) => {
	...
});
...
app.listen(3000, () => {
	console.log('Example app listening on port 3000!');
	consoleExpressRoutes(app);
});

JavaScript

ES Module

import express from 'express';
import consoleExpressRoutes from 'console-express-routes';

const app = express();

app.get('/', (req, res) => {
	...
});
...
app.listen(3000, () => {
	console.log('Example app listening on port 3000!');
	consoleExpressRoutes(app);
});

CommonJS

Note that you should be require('...').default.

const express = require('express');
const consoleExpressRoutes = require('console-express-routes').default;

const app = express();

app.get('/', (req, res) => {
	...
});
...
app.listen(3000, () => {
	console.log('Example app listening on port 3000!');
	consoleExpressRoutes(app);
});

License

MIT licensed

console-express-routes's People

Contributors

renovate[bot] avatar yutak23 avatar

Watchers

 avatar

console-express-routes's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • chalk ^5.3.0
  • cli-table3 ^0.6.5
  • express ^4.19.2
  • lodash ^4.17.21
  • @babel/cli ^7.24.5
  • @babel/core ^7.24.5
  • @babel/preset-env ^7.24.5
  • @types/express ^4.17.21
  • @vitest/coverage-v8 ^1.6.0
  • eslint ^8.57.0
  • eslint-config-airbnb-base ^15.0.0
  • eslint-config-prettier ^9.1.0
  • eslint-plugin-import ^2.29.1
  • npm-check-updates ^16.14.20
  • npm-run-all2 ^6.0.0
  • prettier ^3.2.5
  • vitest ^1.6.0
  • node >=16.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.