Skip to content

rjlopezdev/nestjs-lib-starter

Repository files navigation

💡 See CONFIGURE_TEMPLATE.md to configure this template. Then, remove the file and this advise.

Nest Library Starter

Nest Library Starter

Minimal library description.






Contributing · License

📚 See complete documentation

An exhaustive description of the library.

📓 Summary

📦 Installation

  • 🐈 Using Nest CLI:
nest add nestjs-library-starter
  • 📦 Using Package Manager:
npm install --save nestjs-library-starter

🔧 Setup

Explain your library setup.

import { Module } from '@nestjs/common';
import { LibraryNameModule, LibraryNameConfig } from 'nestjs-library-starter';

const CONFIG: LibraryNameConfig = {
  value: 'Awesome!'
}

@Module({
  imports: [
    ...
    LibraryNameModule.register(CONFIG)
  ],
  controllers: [ ... ],
  providers: [ ... ],
})
export class AppModule {}

🎛️ Config

Value Type Default Description
value string <DEFAULT> A powerful value

📚 Usage

Explain your library usage.

LibraryNameService

A service with an awesome & helpul functionallity.

Method Signature Description
printConfig config: LibraryNameConfig Prints a provided configuration

🎨 Schematics

Invoke Schematics using:

nest g <schematic> [params] --collection nestjs-library-starter

demo

Prints a cute cat.

Parameter Type Default Description
catType string Default Type of cat to print.