Socket
Book a DemoInstallSign in
Socket

@rym-lib/inversify-bundler-express

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rym-lib/inversify-bundler-express

## Installation

latest
npmnpm
Version
1.4.3
Version published
Maintainers
1
Created
Source

@rym-lib/inversify-bundler-express

Installation

npm i @rym-lib/inversify-bundler
npm i @rym-lib/inversify-bundler-express

Usage

import 'reflect-metadata'

import express, { Request, Response } from 'express'

import { Bundler, ContainerModule } from '@rym-lib/inversify-bundler'
import { container } from '@rym-lib/inversify-bundler-express'

const app = express()

app.use(
  container((req, res) => {
    return new Bundler(
      new ContainerModule((bind) => {
        bind<Request>('Request').toDynamicValue(() => req)
        bind<Response>('Response').toDynamicValue(() => res)
      }),
    )
  }),
)

app.get('/example', (req) => {
  const response = req.container.get<Response>('Response')
})

FAQs

Package last updated on 12 Sep 2025

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