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

option for output type (number or string) #9

Closed
jonathanong opened this issue Dec 2, 2013 · 1 comment
Closed

option for output type (number or string) #9

jonathanong opened this issue Dec 2, 2013 · 1 comment
Assignees

Comments

@jonathanong
Copy link

something like bytes('1gb', 'number'). not sure the best way. sometimes we just always want the numerical version. it would avoid type checking stuff like this: https://github.com/stream-utils/raw-body/blob/master/index.js#L17

@dougwilson
Copy link
Contributor

Soon you'll be able to simply do bytes.parse(variable) and it'll be a number.

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