@sailplane/injector
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

@sailplane/injector - Type-safe Dependency Injection

What?

Simple, light-weight, lazy-instantiating, and type-safe dependency injection in Typescript! Perfect for use in Lambdas and unit test friendly.

This is part of the sailplane library of utilities for AWS Serverless in Node.js.

Why?

It is built on top of the BottleJS, with a simple type-safe wrapper. The original bottle is available for more advanced use, though. Even if you are not using Typescript, you may still prefer this simplified interface over using BottleJS directly.

How?

See the doc site for usage and examples.

There's also a small working example of Injector in the example directory. It includes Serverless Framework, Webpack, and @sailplane/lambda-utils.

/@sailplane/injector/

    Package Sidebar

    Install

    npm i @sailplane/injector

    Weekly Downloads

    230

    Version

    4.0.0

    License

    Apache-2.0

    Unpacked Size

    16.8 kB

    Total Files

    4

    Last publish

    Collaborators

    • itprokyle
    • ttarhan
    • adamfanello