# canhas

> a simple service locator

Latest version **1.0.2** (published 2017-07-17) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-07-17 |
| First published | 2017-07-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | jsn |
| Maintainers | jsdnxx |

## Links

- npm: https://www.npmjs.com/package/canhas
- npm.io page: https://npm.io/package/canhas

## Recent versions

- 1.0.2 (latest) — 2017-07-17
- 1.0.1 — 2017-07-17
- 1.0.0 — 2017-07-17

## README

# canhas

a simple service locator

## installation

```
> npm install canhas
```


## example usage

in JavaScript
```js
const canhas = require('canhas')

// in an init module that is required before the rest of the application
canhas.set('clock', Date)

// then maybe in another module

const clock = require('canhas')('clock')
console.log(clock.now())
```


## contributing
This package is developed in TypeScript but usable in all JavaScript projects, on Node.js or in browsers.
The npm package includes compiled ES5 JavaScript, as well as TypeScript .d.ts type definition files.


## license
ISC


cheers!

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