Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nestjs-geteventstore

Package Overview
Dependencies
Maintainers
2
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nestjs-geteventstore

Event Store connector for Nest js

  • 0.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
131
increased by37.89%
Maintainers
2
Weekly downloads
 
Created
Source

nestjs-eventstore


Example config in projects consumming this lib:

import { registerAs } from '@nestjs/config';
import { IEventStoreConfig } from 'nestjs-geteventstore';

export default registerAs(
  'eventstore',
  () =>
    ({
      credentials: {
        username: process.env.EVENTSTORE_CREDENTIALS_USERNAME,
        password: process.env.EVENTSTORE_CREDENTIALS_PASSWORD,
      },
      tcp: {
        host: process.env.EVENTSTORE_TCP_HOST || 'localhost',
        port: process.env.EVENTSTORE_TCP_PORT || 1113,
      },
      http: {
        host: process.env.EVENTSTORE_HTTP_HOST || 'http://localhost',
        port: process.env.EVENTSTORE_HTTP_PORT || 2113,
      },
    } as IEventStoreConfig),
);

To init the module as a writer:

EventStoreModule.forRootAsync({
      useFactory: async (config: ConfigService) => config.get('eventstore'),
      inject: [ConfigService],
    }),

Keywords

FAQs

Package last updated on 04 Mar 2020

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc