1.0.1 • Published 8 years ago

simplenamespace v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

simplenamespace

Simplenamespace a simple library to make class loading easier and cleaner. Using the new Proxy es6 class.

Install

As always, use the npm package manager:

npm install simplenamespace

Usage:

const Namespace = require('simplenamespace');

var App = Namespace.factory('App', '/path/to/app');


/*
	This first detects that data/ is a dir
	then that data/Model.js is a file and requires it.
 */
new App.data.Model('foo', {
	foo: true
});