News for hackers. Stuff that matters.
Re:REPL: To JSON what Excel is to CSV by 97-109-107 on Wednesday February 19, 2014 @04:03AM (#7262642)
Seems like exactly the tool we needed just two days ago for pruning down a 49mb json file. We ended up parsing it in nodejs as it could simply spit out the output to a file. I didn't want to risk crashing my browser again - is there any chance that a client-side web-app parser (like yours) would be able to handle files that big?
Re:REPL: To JSON what Excel is to CSV by Cthulhu_ on Wednesday February 19, 2014 @07:07AM (#7263181)
Maybe if you could install it locally / if it supports the file API without having to upload it to the server. I would like to see a 'pure' client-side implementation, though.
Re:REPL: To JSON what Excel is to CSV by spolu on Wednesday February 19, 2014 @05:19AM (#7262886)
Yep. We are trying to push our bizdev to use it as well. It's still slightly complicated... but they're starting to get it! :)
Re:REPL: To JSON what Excel is to CSV by 97-109-107 on Wednesday February 19, 2014 @05:46AM (#7262963)
Am I missing something, but wouldn't that require pasting the 49mb file into your app through my clipboard? Just getting a file like that into the clipboard, let alone pasting into the browser, seems like a task in itself.
Re:REPL: To JSON what Excel is to CSV by spolu on Wednesday February 19, 2014 @05:52AM (#7262985)
Yes you're right. 49mb is slightly large for REPL. but I've been working successfully with 200k lines CSV of over 15mb without issue
Re:REPL: To JSON what Excel is to CSV by maninalift on Thursday February 20, 2014 @02:35AM (#7269443)
Your bandwidth has nothing to do with it, it runs in the browser.

All it does is JSON.parse, execute your series of functions then JSON.stringify.

Unless I'm missing something there is no advantage over ad-hoc javascript. If you want to load a file from disk, deserialize and do some processing in javascript then node is absolutely the right tool (and this isn't).