hero-include

1.0.8 • Public • Published

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");

/hero-include/

    Package Sidebar

    Install

    npm i hero-include

    Weekly Downloads

    0

    Version

    1.0.8

    License

    Apache-2.0

    Last publish

    Collaborators

    • imyevolove