1.0.5 • Published 7 years ago

recursivejs v1.0.5

Weekly downloads
5
License
ISC
Repository
github
Last release
7 years ago

Recursive JS

Load and run modules recursively. With recursive.js you'll can load modules and access them by a simple object.

.
└── views                                   {
    ├── index.js                                index  : data, 
	└── sample                    TO            sample : {
	    ├── index.js             >>>>               index : data, 
	    └── test                                    test  : {
	        └── something.js                            something : data } } }
# data can be anything that the js file exports

Dependencies

Recursive JS uses just one dependencie:

  • Underscore - Underscore is a JavaScript library that provides a whole mess of useful functional programming helpers without extending any built-in objects.

Installation

$ npm install recursivejs --save

Usage

var recursive = require('recursive')
,   views     = recursive.require('./views'); // views, like sample above

// Assuming that something.js exports method 'doSomething':
views.sample.test.something.doSomething('RecursiveJs');
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago