You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@dom-utils/selector-path

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dom-utils/selector-path

Returns unique selector for given element

1.0.3
latest
npm
Version published
Weekly downloads
126
16.67%
Maintainers
1
Weekly downloads
 
Created
Source

@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 })

Keywords

dom

FAQs

Package last updated on 14 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts