optional : Allows you to optionally include modules without surrounding everything with try/catch. You can installing optional 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 optional $ sudo npm install -g optional
If want to update the optional package execute the command as below,
$ sudo npm update optional
Update package globally,
$ npm install -g optional
$ sudo git clone https://github.com/rektide/optional.git
$ sudo npm install -g ./optional
optional@0.1.4 /usr/lib/node_modules/optional
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall optional
| Package Name | optional |
| Version | 0.1.4 |
| Description | Allows you to optionally include modules without surrounding everything with try/catch |
| Released Date | 2017-07-13T16:31:10.294Z |
| Published by | segomos |
| How to Learn | https://www.npmjs.com/package/optional/tutorial |