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

Wow, great thing... but... how do I use this in practice ? #13

Closed
jmfayard opened this issue Oct 13, 2013 · 3 comments
Closed

Wow, great thing... but... how do I use this in practice ? #13

jmfayard opened this issue Oct 13, 2013 · 3 comments

Comments

@jmfayard
Copy link

Sorry to sound stupid, but I need exactly your utility because of this

http://stackoverflow.com/questions/19342628/chromes-webstore-server-reject-an-extension-with-error-the-manifest-must-def

So I would had hope a very simple webpage where I can quickly remove the problem to see if the problem come frome here.

There is none ok. I'm not a javascript developer, but I know that this node.js and npm things are useful, so I install them on my macbook pro

but since there are no docs, I made an error
It's not https://npmjs.org/package/json-minify (doesn't allow comments)
It's https://npmjs.org/package/jsonminify (very different !)

ok, so I install the second one

but everything is a library there.
No command line utiliy that I can use to convert my manifest-with-comments.json file that a human can understand to manifest.json file that a computer can understand

Sure I should know python or node or... but I don't know enough to do that... and I'm by far not the only one that would benefit from your tool

OK, so for this time I will just use vim to remove comments, but I hope I can Read The Fine Documentation next time :-D

@getify
Copy link
Owner

getify commented Oct 13, 2013

Not quite sure what your question is... ?

@jmfayard
Copy link
Author

I need to be able to minify a given json file from the command-line
(I'm on macosx, but with homebrew, node, python, ... everything installed) so that I can do

`$ jsonminify manifest-with-comments.json --output manifest.json

manifest-with-comments.json being a file in https://github.com/internaciulo/search-tab-in-chrome-s-omnibox

This is probably possible, but a Fine Documentation is needed for ignorant people like me.

The question then is : could you or someone else write that Fine Documentation ?

@getify
Copy link
Owner

getify commented Oct 14, 2013

No such command-line tool exists in this project. I would suggest asking the maintainer of that npm package if they'll make a command-line tool. It's pretty easy to do, but it just hasn't been done here. I would accept a pull request from someone if they implemented a good one.

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

No branches or pull requests

2 participants