lmaccherone / node-localstorage

A drop-in substitute for the browser native localStorage API that runs on node.js.
MIT License
450 stars 36 forks source link

used fstatSync instead of reading the file #9

Closed sudheer594 closed 9 years ago

sudheer594 commented 9 years ago

@lmaccherone I have added getStat method to read the filesize. by using the new method,file need not be opened to know the size. Please let me know if you have any comments.(latest commit :325471a) Thanks.

lmaccherone commented 9 years ago

Nice improvement. Thanks.

sudheer594 commented 9 years ago

Glad i could help.

lmaccherone commented 9 years ago

BTW, I just pushed this upgrade to npm.