/selector-query

Get unique css selector from a dom node

Primary LanguageJavaScriptMIT LicenseMIT

selector-query

querySelector >< selectorQuery

##usage

var selectorQuery = require('selector-query')

documnet.addEventListner('click', function(e) {
  console.log(selectorQuery(e.target)) // *click* -> '#foo div.bar:nth-child(3) span'
})