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
Function that returns a file in various size conversions (bytes, kb, mb) #2
Comments
Hello, I'd like to take on this issue if possible |
@MPierre9 I ended up implementing the file size feature in the on line 23 of |
@marcobeltempo, managed to get the code to display Bytes instead of B as well as Kilobytes. Right now the function just returns the number however it can be changed to return a string saying
|
Nice work! @MPierre9 I think we should leave it the way it is returning the size in KB. |
Pull Request #6 - Added output of file size in kilobytes |
This function should be able to extract a filename from a path as well as calculate the file size.
Example:
user/marco/mydata.txt
mydatat.txt 250 bytes
The node module filesize would be great for this implementation.
The text was updated successfully, but these errors were encountered: