Skip to content

Conversation

cincodenada
Copy link

@cincodenada cincodenada commented Oct 13, 2021

This is a useful utility function outside the library, and folks who are doing selectors (like me) will often want to do something like this without having to build up a whole selector. I think it's useful, in keeping with the goal of the library, and simple enough to make part of the public API.

I'm using esquery for the first time today and it's very useful! I just went to try to use getPath which I'd been looking for a simple implementation of anyway, and found it wasn't exported, so figured I'd give it a shot after not seeing similar requests in the issue history.

This is a useful utility function outside the library, and folks who are doing selectors (like me) will often want to do something like this without having to build up a whole selector. I think it's useful enough and simple enough to make part of the public API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant