copy-json-path icon indicating copy to clipboard operation
copy-json-path copied to clipboard

Make JSONtoPath a npm lib

Open Xterionix opened this issue 11 months ago • 2 comments

Not exactly related to the extension but here goes.

Is your feature request related to a problem? Please describe.

I've been trying to figure out a good way to get the JSON path from the cursor position and this does it really well.

Describe the solution you'd like

I was hoping if this was made into an npm package then I'd be able to use it.

Xterionix avatar Mar 29 '24 21:03 Xterionix

I'm open to helping set it up if that's a concern

Xterionix avatar Mar 29 '24 22:03 Xterionix

Hello @Xterionix, Thanks for your idea 😄 but, I'm not sure I understand your point. Can you give me some use cases?

Do you want to extract the function "getJsonPath" into an external npm package? https://github.com/MaloPolese/copy-json-path/blob/f6d00bf3eec54d95a46579d1d6446f2827a2f049/src/json.path.ts#L15

I invite you to check this lib jsonc-parser

MaloPolese avatar Apr 08 '24 10:04 MaloPolese