dom-closest : For a given DOM element, find the first ancestor that matches a given CSS selector.. You can installing dom-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 dom-closest $ sudo npm install -g dom-closest
If want to update the dom-closest package execute the command as below,
$ sudo npm update dom-closest
Update package globally,
$ npm install -g dom-closest
$ sudo git clone https://github.com/rektide/dom-closest.git
$ sudo npm install -g ./dom-closest
dom-closest@0.2.0 /usr/lib/node_modules/dom-closest
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall dom-closest
Package Name | dom-closest |
Version | 0.2.0 |
Description | For a given DOM element, find the first ancestor that matches a given CSS selector. |
Released Date | 2015-08-18T17:44:40.787Z |
Published by | necolas |
How to Learn | https://www.npmjs.com/package/dom-closest/tutorial |