Socket
Book a DemoInstallSign in
Socket

nestjs-type-events

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nestjs-type-events

A nest.js module for type-events

latest
Source
npmnpm
Version
1.0.0-beta.0
Version published
Maintainers
1
Created
Source

nestjs-type-events

A type-events module for Nest.js.

NPM Version Package License NPM Downloads

Installation

$ yarn add type-events nestjs-type-events

Basic usage

app.module.ts

import { Module } from "@nestjs/common";
import { TypeEventsModule } from 'nestjs-type-events';
import { DogsModule } from "./dog.module.ts";

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

dog.module.ts

import { Module } from '@nestjs/common';
import { TypeEventsModule } from 'nestjs-type-events';
import { HelloController } from './hello.controller';
import { HelloService } from './hello.service';
import { HelloSubscriber } from './subscribers/hello.subscriber';

@Module({
  imports: [TypeEventsModule.forFeature([HelloSubscriber])],
  controllers: [HelloController],
  providers: [HelloService, HelloSubscriber]
})
export class HelloModule {}

See tests/src for full example.

Test

# e2e tests
$ npm run test:e2e

Stay in touch

  • Author - Jordan Stout

License

nestjs-type-events is MIT licensed.

Keywords

typescript

FAQs

Package last updated on 26 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.