An open API service indexing awesome lists of open source software.

https://github.com/shadowtime2000/watercraft.js

A simple and lightweight yet powerful Dependency Injection Container package
https://github.com/shadowtime2000/watercraft.js

Last synced: about 1 year ago
JSON representation

A simple and lightweight yet powerful Dependency Injection Container package

Awesome Lists containing this project

README

          

# watercraft.js

A simple and lightweight yet powerful Dependency Injection Container package

## Installation

`npm i watercraft.js`

### Usage

```javascript
const DependencyInjectionContainer = require("watercraft.js");

const vessel = new DependencyInjectionContainer();

vessel.register("foo", () => "foobar");
vessel.getDependency("foo"); // "foobar"
```