@dom-utils/selector-path
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@dom-utils/selector-path

Returns unique selector for given element

This project is cloned and modified version of micnews/css-path repository.

Usage

import { getSelectorPath } from '@dom-utils/selector-path'

getSelectorPath(node);

Options

  • useClassName
  • rootNode
  • minify
  • useNodeId

Option Usage

getSelectorPath(node, { useClassName: true, minify: true , useNodeId: true })

Readme

Keywords

Package Sidebar

Install

npm i @dom-utils/selector-path

Homepage

http:

Weekly Downloads

799

Version

1.0.3

License

MIT

Unpacked Size

15.7 kB

Total Files

41

Last publish

Collaborators

  • cyrus-d