element-closest : Return the closest element matching a selector up the DOM tree. You can installing element-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 element-closest $ sudo npm install -g element-closest
If want to update the element-closest package execute the command as below,
$ sudo npm update element-closest
Update package globally,
$ npm install -g element-closest
$ sudo git clone https://github.com/rektide/element-closest.git
$ sudo npm install -g ./element-closest
element-closest@2.0.2 /usr/lib/node_modules/element-closest
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall element-closest
Package Name | element-closest |
Version | 2.0.2 |
Description | Return the closest element matching a selector up the DOM tree |
Released Date | 2016-10-27T02:03:01.879Z |
Published by | jonathantneal |
How to Learn | https://www.npmjs.com/package/element-closest/tutorial |