Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 594 Bytes

README.md

File metadata and controls

21 lines (12 loc) · 594 Bytes

css-selector-generator

A JavaScript utility to generate a unique CSS selector for any element in a DOM tree.

Installation

Install with component:

$ component install graouts/css-selector-generator

Usage

var generator = require("css-selector-generator");

generator(document.body); // -> "body"

Authors

This project is a fork of fczbkk/css-selector-generator, originally created by Riki Fridrich, maintained by Antoine Quint.