A JavaScript utility to generate a unique CSS selector for any element in a DOM tree.
Install with component:
$ component install graouts/css-selector-generator
var generator = require("css-selector-generator");
generator(document.body); // -> "body"
This project is a fork of fczbkk/css-selector-generator, originally created by Riki Fridrich, maintained by Antoine Quint.