closest : Find the closest parent that matches a selector.. You can installing closest 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 closest $ sudo npm install -g closest
If want to update the closest package execute the command as below,
$ sudo npm update closest
Update package globally,
$ npm install -g closest
$ sudo git clone https://github.com/rektide/closest.git
$ sudo npm install -g ./closest
closest@0.0.1 /usr/lib/node_modules/closest
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall closest
Package Name | closest |
Version | 0.0.1 |
Description | Find the closest parent that matches a selector. |
Released Date | 2013-03-13T17:14:08.915Z |
Published by | forbeslindesay |
How to Learn | https://www.npmjs.com/package/closest/tutorial |