require-directory : Recursively iterates over specified directory, require()ing each file, and returning a nested hash structure containing those modules.. You can installing require-directory npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install require-directory $ sudo npm install -g require-directory
If want to update the require-directory package execute the command as below,
$ sudo npm update require-directory
Update package globally,
$ npm install -g require-directory
$ sudo git clone https://github.com/rektide/require-directory.git
$ sudo npm install -g ./require-directory
require-directory@2.1.1 /usr/lib/node_modules/require-directory
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall require-directory
| Package Name | require-directory |
| Version | 2.1.1 |
| Description | Recursively iterates over specified directory, require()ing each file, and returning a nested hash structure containing those modules. |
| Released Date | 2015-05-28T08:31:04.702Z |
| Published by | troygoode |
| How to Learn | https://www.npmjs.com/package/require-directory/tutorial |