tamper
tamper copied to clipboard
Node Support
Any plans for supporting Node in the future? This project has got me pretty excited!
+1.
Yeah, I'd like this to have Node support. :)
+1 yes please
thanks to https://www.npmjs.org/package/buffer it should be possible to use the Buffer API to get better performance in JavaScript, e.g. the current JS decoder uses charCodeAt
instead of methods on typed arrays. If I was going to write an encoder in JS i'd do it as a new small node module that uses the Buffer API, then it would work in the browser automatically too.
None of us are node guys but it would definitely be cool to have node support. Anyone have a sense of how difficult it would be to wrap?
@esmooov should be pretty easy, http://nodejs.org/api/buffer.html should have everything you need
Is anyone actively working on this yet?
Here's what I have so far: https://github.com/oztu/tamp
No tests yet, so no guarantees for functionality. I wrote a little script to compare results of the JS encoder results against the Ruby encoder and they do seem to match (for the sample dataset used).
That is looking pretty solid @oztu