substack/node-put — pull request #4 by justmoon (2011-11-02 08:30:44+00:00)
Title: Add method to retrieve current length

I have a use case currently, where variable length data is written using node-put and I need to keep track of my current position, i.e. how many bytes I have written so far. I can of course track that myself, but since node-put is already calculating the length, it would be very convenient to be able to just retrieve it.

This patch adds a function called len() that returns the current length of the data to be written.