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

Ability to use json4u without cloning the repo #24

Open
przemek-pokrywka opened this issue Sep 24, 2024 · 3 comments
Open

Ability to use json4u without cloning the repo #24

przemek-pokrywka opened this issue Sep 24, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@przemek-pokrywka
Copy link

Hello, I would love to have the ability to run json4u without having to clone the repository.

I tried to run it via pnpm dlx, yet I got the following error:

$ pnpm dlx https://github.com/loggerhead/json4u
 ERR_PNPM_DLX_NO_BIN  No binaries found in json4u

The project looks very nice, by the way, well done! 👍

@loggerhead
Copy link
Owner

@przemek-pokrywka Is json4u a website that can also be deployed with one click using pnpm dlx? It looks like it's for supporting the execution of local commands?

@przemek-pokrywka
Copy link
Author

@loggerhead yes, the project is a website and not a local command, correct.

On the other hand, if it would also be possible to access json4u using a local command, then it would fit better to my use cases, I'll explain how in the next paragraph. I let myself ignore the concerns of the feature feasibility, implementation difficulty, json4u vision alignment, etc, for now.

The use case I had in mind:

  • given two JSON files on my local disk
  • when I run pnpm dlx something file1 file2
  • then a new browser tab opens
  • and I see these files differences in json4u
  • so I'm saved from the manual work necessary to bring up a local instance of json4u and to share my JSON files with it.

@loggerhead
Copy link
Owner

@przemek-pokrywka Absolutely a good idea. I've considered doing it this way, and I plan to implement it like this when supporting plugins. This achieves a balance between convenience and long-term maintenance costs.

@loggerhead loggerhead added the enhancement New feature or request label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants