Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export getPath #126

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Export getPath #126

wants to merge 1 commit into from

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.

None yet

1 participant