seleqtor

1.0.1 • Public • Published

Seleqtor

Seleqtor is a simple javascript function that generates a perfect selector a DOM element passed to it.

Function Definitiion

seleqtor(element: HTMLElement, closestId: Boolean);

The function takes two arguments,

  • element - An HTMLElement that can be retrieved through document.querySelector(".anything-here")
  • closestId - A Boolean to specify whether the selector should be constructed from the closest ID to the HTMLElement provided. This value defaults to true

Readme

Keywords

none

Package Sidebar

Install

npm i seleqtor

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

7.37 kB

Total Files

4

Last publish

Collaborators

  • doc-han