# riccardo

> Dependency Injection Container for Node.js

Latest version **2.1.5** (published 2023-08-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install riccardo
pnpm add riccardo
yarn add riccardo
bun add riccardo
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.1.5 |
| Published | 2023-08-16 |
| First published | 2021-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 30.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Hyeonguk Ryu |
| Maintainers | hyeongukryu |

## Links

- npm: https://www.npmjs.com/package/riccardo
- Repository: https://github.com/hyeongukryu/riccardo
- Issues: https://github.com/hyeongukryu/riccardo/issues
- npm.io page: https://npm.io/package/riccardo

## Dependencies (3)

- [glob](https://npm.io/package/glob.md) ^10.3.3
- [callsite](https://npm.io/package/callsite.md) ^1.0.0
- [function-args](https://npm.io/package/function-args.md) ^1.0.10

## Recent versions

- 2.1.5 (latest) — 2023-08-16
- 2.1.4 — 2022-01-31
- 2.1.3 — 2021-03-26

## README

Riccardo
========

Dependency Injection Container for Node.js

설치하기
--------

```shell
npm install riccardo
```

사용하기
--------

```js
const Riccardo = require('riccardo');
var riccardo = new Riccardo();

// singleton
riccardo
  .set('myStr', 'value')
  .set('myFunc', function () {});

riccardo.get('myStr');
riccardo.get('myFunc');

var injected = riccardo.inject(function (myStr, a, myFunc, b) {});
injected('a', 'b');

var lazyInjected = riccardo.lazy(function (myStr, myFunc, a, myStr2, b, c) {});
riccardo.set('myStr2', 'value2');
lazyInjected('a', 'b', 'c');

var lazyInjected2 = riccardo.$(function (myNewStr) {});
// singleton
riccardo.factory('myNewStr', function (myStr, myStr2) {
  return myStr + myStr2;
});
lazyInjected2();

riccardo.scan('directory', 'optionalNamespace');
```

---
_Source: https://npm.io/package/riccardo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
