Skip to content

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

Open
@jicanghaixb

Description

@jicanghaixb

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions