1.0.3 • Published 6 months ago

nest-list-routes v1.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 months ago

nest-list-routes

NPM Version

Description

List all routes and additional information for Nest framework.

Installation

$ npm i --save nest-list-routes

Setup

Basic configuration

@Module({
    imports: [
        NestListRoutesModule.forRoot()
    ],
})
export class AppModule {}

That's all. When you start Nest, you will see the following output in the terminal:

npm.io

List routes with metadata

Support printing the metadata of custom decorators.

For example, assume you have defined a custom decorator named Role, you can configure it like this:

@Module({
    imports: [
        NestListRoutesModule.forRoot({
            metadataKeys: ['Role'],
        })
    ],
})
export class AppModule {}

You will see the following output:

npm.io

Configuration options

NameDescriptionDefault Value
printWhether to print output.true
metadataKeysDecorators to output, accepting an array.[]

Contributing

You are welcome to contribute to this project, just open a PR.

License

Apache-2.0

1.0.3

6 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago