1.0.0 • Published 8 years ago

selous v1.0.0

Weekly downloads
126
License
-
Repository
github
Last release
8 years ago

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

1.0.0

8 years ago

0.1.0

8 years ago

0.0.1

9 years ago

0.0.0

9 years ago

0.0.2

9 years ago