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

Multiple converter #55

Closed
Manikanta-20 opened this issue Jun 1, 2020 · 6 comments
Closed

Multiple converter #55

Manikanta-20 opened this issue Jun 1, 2020 · 6 comments

Comments

@Manikanta-20
Copy link

Manikanta-20 commented Jun 1, 2020

Feature Request

Get multiple converter values like GB,MB,KB ,Based on value
Example:

var bytes = require("bytes")
bytes(1073741824 )
Return value:->1GB

Expected value : 1GB, 1024MB,1048576 KB.

@dougwilson
Copy link
Contributor

Duplicate of #19 effectively, as that feature would allow you to get all the levels you want for a specific value.

@Manikanta-20
Copy link
Author

I have one use case like
User having 60GB
-> 60 GB,0 MB,0KB
After he consumed 1mb
->59GB,1MB,0KB

This use case also will come into same or different?

@dougwilson
Copy link
Contributor

Oh, I think I get what you are saying. That does seem different from the first example you originally provided.

@Manikanta-20
Copy link
Author

Manikanta-20 commented Jun 1, 2020

Yes,another case.

@Manikanta-20
Copy link
Author

@dougwilson you will open as new issue ?

@Manikanta-20
Copy link
Author

Manikanta-20 commented Jun 4, 2020

Oh, I think I get what you are saying. That does seem different from the first example you originally provided.

for above usecase i opening new request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants