require-main-filename : shim for require.main.filename() that works in as many environments as possible. You can installing require-main-filename 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-main-filename $ sudo npm install -g require-main-filename
If want to update the require-main-filename package execute the command as below,
$ sudo npm update require-main-filename
Update package globally,
$ npm install -g require-main-filename
$ sudo git clone https://github.com/rektide/require-main-filename.git
$ sudo npm install -g ./require-main-filename
require-main-filename@1.0.1 /usr/lib/node_modules/require-main-filename
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall require-main-filename
| Package Name | require-main-filename |
| Version | 1.0.1 |
| Description | shim for require.main.filename() that works in as many environments as possible |
| Released Date | 2016-02-17T05:54:56.900Z |
| Published by | bcoe |
| How to Learn | https://www.npmjs.com/package/require-main-filename/tutorial |