Skip to main content

@nestjs-mod/reports

Modules and utilities for generating reports on infrastructure and features

NPM version monthly downloads Telegram Discord

Installation

npm i --save @nestjs-mod/reports

Modules

LinkCategoryDescription
NestjsModAllReadmeGeneratorinfrastructureReadme generator for nestjs-mod modules.

Modules descriptions

NestjsModAllReadmeGenerator

Readme generator for nestjs-mod modules.

Use in NestJS-mod

Example of use with all need options.

import { bootstrapNestApplication } from '@nestjs-mod/common';
import { NestjsModAllReadmeGenerator } from '@nestjs-mod/reports';
import { join } from 'path';

const libFolder = join(__dirname, '..', '..', '..', 'libs/common');

bootstrapNestApplication({
modules: {
infrastructure: [
NestjsModAllReadmeGenerator.forRoot({
contextName: 'common',
staticConfiguration: {
telegramGroup: 'https://t.me/nestjs_mod',
discord:'https://discord.gg/meY7UXaG',
packageFile: join(libFolder, 'package.json'),
markdownFile: join(libFolder, 'README.md'),
folderWithMarkdownFilesToUse: libFolder,
utilsFolders: [join(libFolder, 'src/lib')],
modules: [import('@nestjs-mod/common')],
markdownFooter: `
## Links

* https://github.com/nestjs-mod/nestjs-mod - A collection of utilities for unifying NestJS applications and modules
* https://github.com/nestjs-mod/nestjs-mod-contrib - Contrib repository for the NestJS-mod
`,
},
}),
],
},
});

Static configuration

KeyDescriptionConstraintsDefaultValue
utilsFoldersFolders with utilitiesisNotEmpty (utilsFolders should not be empty)--
modulesNodeJS modules with NestJS-mod modulesisNotEmpty (modules should not be empty)-hidden
packageFileName of the package.json file with informationisNotEmpty (packageFile should not be empty)--
markdownFileName of the markdown file in which to saveisNotEmpty (markdownFile should not be empty)--
folderWithMarkdownFilesToUseA folder of markdown files with instructions for using modules in NestJS and NestJS-mod applications (example of file names: /libs/reports/NESTJS_MOD_ALL_README_GENERATOR_USE_IN_NEST_JS.md, /libs/reports/NESTJS_MOD_ALL_README_GENERATOR_USE_IN_NEST_JS_MOD.md)optional--
markdownHeaderCustom header markdown stringoptional--
markdownFooterCustom footer markdown stringoptional--
telegramGroupTelegram groupoptional--
discordDiscordoptional--

Back to Top

License

MIT