has-flag : Check if argv has a specific flag. You can installing has-flag 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 has-flag $ sudo npm install -g has-flag
If want to update the has-flag package execute the command as below,
$ sudo npm update has-flag
Update package globally,
$ npm install -g has-flag
$ sudo git clone https://github.com/rektide/has-flag.git
$ sudo npm install -g ./has-flag
has-flag@2.0.0 /usr/lib/node_modules/has-flag
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall has-flag
Package Name | has-flag |
Version | 2.0.0 |
Description | Check if argv has a specific flag |
Released Date | 2016-04-11T15:47:58.270Z |
Published by | sindresorhus |
How to Learn | https://www.npmjs.com/package/has-flag/tutorial |