Skip to content

Commit

Permalink
Added organization
Browse files Browse the repository at this point in the history
  • Loading branch information
tbopec committed Nov 23, 2020
1 parent 3d65881 commit d5d4328
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ The goal of the dependency injection technique is to remove this dependency by s
## Installation

```shell
npm install js-dependency-injection
npm install @i-doit/js-dependency-injection
```

## Basic Example

To use the DI, you have to create a DiBuilder. It is responsible for the registration and resolving of all the dependencies.

```js
import { DiBuilder } from 'js-dependency-injection';
import { DiBuilder } from '@i-doit/js-dependency-injection';
```

Create a DiBuilder instance and register the needed services and parameters.
Expand Down Expand Up @@ -67,7 +67,7 @@ Facade is a set of helper methods to define your container builder with factory

### Example of usage:
```js
import $ from 'js-dependency-injection';
import $ from '@i-doit/js-dependency-injection';

export default $.di('example',
$.s('service',
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-dependency-injection",
"version": "1.0.0",
"name": "@i-doit/js-dependency-injection",
"version": "1.0.1",
"description": "Dependency Injection container inspired by Symfony DI",
"main": "./lib/index.js",
"module": "es/index.js",
Expand Down

0 comments on commit d5d4328

Please sign in to comment.