0.3.1 • Published 7 years ago

selector-generator v0.3.1

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

SelectorGenerator

Built with Gulp devDependency Status Build Status

JavaScript object that creates a unique CSS selector for a given DOM element. It has no external dependencies.

Overview

var generator = new SelectorGenerator();
var element = document.querySelector("input"); // <input type="text" id="login" />
var selector = generator.getSelector(element); //=> #login
var path = generator.getPath(element); //=> body > div > input

Installation

Node.js

To install SelectorGenerator module for Node.js, this command should be used:

npm install selector-generator

Or yarn:

yarn add selector-generator

Tests

You can view the results of the SelectorGenerator test suite in your browser!

0.3.1

7 years ago

0.3.0

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago