1.0.8 • Published 7 years ago

hero-include v1.0.8

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
7 years ago

Hero Include

Smart 'require' module for NodeJS

Installation

Install via npm.

npm install hero-include

Examples

Require the module once in the main script

require("hero-include");

Use method 'using' for adding folder to router and include scripts from these folders. Call include or heroInclude.

require("hero-include");

include
	.using("./core")
	.using("./lib");

// or

heroInclude
	.using("./core")
	.using("./lib");

var a = include("module_from_core_folder");
var b = include("module_from_lib_folder");
1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

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