Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomhodgins/959285f07933c87b6be97e3eaa631fe1 to your computer and use it in GitHub Desktop.
Save tomhodgins/959285f07933c87b6be97e3eaa631fe1 to your computer and use it in GitHub Desktop.
Promise.all([
import('https://unpkg.com/espath'),
import('https://unpkg.com/flatted@2.0.1/esm/index.js')
]).then(([espath, {stringify}]) => {
console.log(
espath.default(
JSON.parse(stringify(window)),
'//*[contains(text(), "25")]'
)
)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment