path-type : Check if a path is a file, directory, or symlink. You can installing path-type 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 path-type $ sudo npm install -g path-type
If want to update the path-type package execute the command as below,
$ sudo npm update path-type
Update package globally,
$ npm install -g path-type
$ sudo git clone https://github.com/rektide/path-type.git
$ sudo npm install -g ./path-type
path-type@3.0.0 /usr/lib/node_modules/path-type
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall path-type
| Package Name | path-type |
| Version | 3.0.0 |
| Description | Check if a path is a file, directory, or symlink |
| Released Date | 2017-07-08T23:00:58.771Z |
| Published by | sindresorhus |
| How to Learn | https://www.npmjs.com/package/path-type/tutorial |