# paperdi

> Paper DI brings simple class which may help you to inject or select objects!

Latest version **0.1.0** (published 2015-03-26) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-03-26 |
| First published | 2015-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Hamza Waqas |
| Maintainers | arkeologen |
| Keywords | paperdi, dependency, injection, di, objects, helper |

## Links

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

## Dependencies (1)

- [klass](https://npm.io/package/klass.md) ^1.4.0

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2015-03-26

## README

# paperdi
Paper DI brings simple class which may help you to inject or select objects!

## Install
To install, simply run the command `npm install paperdi` and if you want to save into your `package.json`, just put `--save` flag as well.

## Usage.

To use the paperdi, you just have to `require` the module and done!.

```javascript
var di = require('paperdi');

// inject your values.
di.inject('hello', 'world');
di.inject('foo', 'bar');
di.inject('obj', {});
di.inject('imarray', [1, 2]);

// Pass the di object to your other modules. i.e
require('./my/module/')(di);
myFunction(di);
comeBack(di, function() {
  // Used for async.
});

// To retrieve back
var hello = di.select('hello'); // returns world.
var giveMyObjectBack = di.select('obj'); // becomes {}
```

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