Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@onflow/util-address

onflow68kApache-2.01.2.4TypeScript support: included

Flow JS SDK Util -- Address

readme


import {withPrefix, sansPrefix, display} from "@onflow/util-address"

const address = "0xc88ff43f1a87c679"
assert(sansPrefix(address), "c88ff43f1a87c679")

assert(withPrefix(address), address)
assert(withPrefix(sansPrefix(address)), address)

const Comp = ({ address }) => {
  return <div>
    <strong>Flow Address</strong>
    <span>{display(address)}</span>
  </div>
}

changelog

@onflow/util-address

1.2.4

Patch Changes

1.2.3

Patch Changes

1.2.3-alpha.0

Patch Changes

1.2.2

Patch Changes

1.2.2-alpha.3

Patch Changes

1.2.2-alpha.2

Patch Changes

1.2.2-alpha.1

Patch Changes

1.2.1

Patch Changes

1.2.0

Minor Changes

1.1.0

Minor Changes

Patch Changes

1.1.0-alpha.5

Patch Changes

  • #1663 62dfafa9 Thanks @nialexsan! - Upgrade jest to v29.5 and update tests accordingly. Change build to transpile with ESM modules.

1.1.0-alpha.4

Patch Changes

1.1.0-alpha.3

Minor Changes

1.1.0-alpha.2

Minor Changes

1.1.0-alpha.1

Minor Changes

1.1.0-alpha.0

Minor Changes

1.0.3

Patch Changes

1.0.2

Patch Changes

1.0.2-alpha.0

Patch Changes

1.0.1

Patch Changes

1.0.0

Major Changes

Patch Changes

1.0.0-alpha.1

Patch Changes

1.0.0-alpha.0

Major Changes

  • Release 1.0.0 alpha

Patch Changes

  • 7469c5c3: Update @onflow/types dependency to match most current version

  • YYYY-MM-DD BREAKING? -- description

0.0.0 -- 2020-09-29

  • 2020-09-29 -- Initial port from FCL.