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

suggest bloblang add parse humanize times and sizes function. #569

Open
jicanghaixb opened this issue Nov 24, 2020 · 2 comments
Open

suggest bloblang add parse humanize times and sizes function. #569

jicanghaixb opened this issue Nov 24, 2020 · 2 comments
Labels
bloblang Bloblang features enhancement

Comments

@jicanghaixb
Copy link

jicanghaixb commented Nov 24, 2020

root.foo = this.thing.number() + 10
root.bar = this.thing.number(5) * 10
Bloblang methods number() can add assertion parse bytes to number?(github.com/dustin/go-humanize)
this met
example:
root.a = this.a.number()
root.b = this.b.number()

In: {"a":"42 MB", b:"42 mib"}

Out: {"a":42000000, b:44040192}

this hummanize transformat should be a common requirement.

@jicanghaixb jicanghaixb changed the title suggest bloblang add parse bytes to number suggest bloblang add parse humanize times and sizes function. Nov 24, 2020
@Jeffail Jeffail added bloblang Bloblang features enhancement labels Nov 24, 2020
@Jeffail
Copy link
Collaborator

Jeffail commented Nov 24, 2020

Hey @jicanghaixb, sounds like a good fit

@jicanghaixb
Copy link
Author

thks, look forward to this feature.

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

No branches or pull requests

2 participants