Skip to content
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

Add pretty printing for file size #21

Merged
merged 1 commit into from
Oct 3, 2017
Merged

Add pretty printing for file size #21

merged 1 commit into from
Oct 3, 2017

Conversation

JoshuaAF
Copy link
Contributor

@JoshuaAF JoshuaAF commented Oct 3, 2017

Fixes #4

Added filesize package and line to convert the number of bytes to a more human readable form. If you would prefer to not add another dependency, let me know and I'd be willing to go with a different approach, but this is the most straightforward solution

This commit is fairly straightforward. The package 'filesize' is included as a
lightweight method for converting a byte value into human readable form
@Angelmmiguel
Copy link
Owner

Hello @JoshuaAF,

Thank you for the PR. I checked the package. It doesn't have any external and the size is 2Kb so It's fine to include it in the library.

Happy Hacktoberfest! :)

@Angelmmiguel Angelmmiguel merged commit 31a22c2 into Angelmmiguel:master Oct 3, 2017
@JoshuaAF JoshuaAF deleted the pretty-print-filesize branch October 3, 2017 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants