nestjs-stock-options
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

NestJS Stock Options

NestJS module for basic manipulation with stock options 📈

About

nestjs-stock-options implements a module, which when imported into your nestjs project provides an access to the stock options calculation in every class that injects it. This lets calculations be worked into your dependency injection workflow without having to do any extra work outside of the initial setup.

Installation

npm install --save nestjs-stock-options

Getting Started

The simplest way to use nestjs-stock-options is to use StockOptionsModule.register

import { Module } from '@nestjs/common';
import { StockOptionsModule } from 'nestjs-stock-options';

@Module({
  imports: [
    StripeModule.register(),
  ],
})
export class AppModule {}

You can then inject the Calculator into any of your injectables by using a DI

import { Injectable } from '@nestjs/common';
import { StockOptionsService } from 'nestjs-stock-options';

@Injectable()
export class AppService {
  public constructor(private readonly stockOptionsService: StockOptionsService) {}
}

License

Distributed under the MIT License. See LICENSE for more information.

Readme

Keywords

Package Sidebar

Install

npm i nestjs-stock-options

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

10.7 kB

Total Files

11

Last publish

Collaborators

  • vbetsun