Skip to content

Commit

Permalink
docs: update installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkluijk committed Oct 7, 2024
1 parent ae88ee4 commit b39db85
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ Check out the [docs](https://needle-di.io/concepts/binding.html) to learn more!
npm install --save @needle-di/core
```

Needle DI also works with [Deno](https://deno.com/) and is distributed on [JSR](https://jsr.io/@needle-di/core) as well:

```bash
deno add @needle-di/core
```

## Docs

Check out our docs on [https://needle-di.io](https://needle-di.io/concepts/binding.html).
Expand Down
8 changes: 7 additions & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ outline: deep
Just install it using your favorite package manager.

```bash
npm install --save needle-di
npm install --save @needle-di/core
```

Needle DI also works with [Deno](https://deno.com/) and is distributed on [JSR](https://jsr.io/@needle-di/core) as well.

```bash
deno add @needle-di/core
```

## Basic example

Here’s a simple example using constructor injection to inject one service into another.
Expand Down

0 comments on commit b39db85

Please sign in to comment.