# selous

> A library used to register and access nodejs application modules by name rather than by path

Latest version **1.0.0** (published 2016-07-11) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-07-11 |
| First published | 2015-08-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Isioma Nnodum |
| Maintainers | icompuiz |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2016-07-11
- 0.1.0 — 2016-07-11
- 0.0.1 — 2015-10-12
- 0.0.0 — 2015-08-26

## README

# Selous
A library used to reference nodejs application modules by name

```
app
- plugins
- - myplugin.js
- api
- - mymodule
- - - controller.js
```

plugins/myplugin.js
```
var selous = require('selous');

function MyPlugin() {
	
	this.doSomething = function() {
		console.log('Hello World');
	}

}

module.exports = selous.plugin('MyPlugin', MyPlugin);
```
api/mymodule/controller.js
```
var selous = require('selous');
var MyPlugin = selous.require('MyPlugin');

function MyController() {
	
	this.doSomethingComplex = function() {

		MyPlugin.doSomething();

	}

}
module.exports = selous.require('MyController', MyController);
```


Selous is inspired by the Mongoose ODM (http://mongoosejs.com)

More information about Selous' Mongoose - https://en.wikipedia.org/wiki/Selous%27_mongoose

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