@onflow/util-address
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published
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>
}

Readme

Keywords

none

Package Sidebar

Install

npm i @onflow/util-address

Homepage

onflow.org

Weekly Downloads

16,255

Version

1.2.3

License

Apache-2.0

Unpacked Size

20.5 kB

Total Files

14

Last publish

Collaborators

  • han210
  • dapperj
  • dapper_labs
  • jeffreydoyle
  • harry.eth
  • turbolent_flow
  • chasefleming
  • gregsantos
  • gregorggg
  • jribbink
  • bthaile
  • nialexsan
  • sisyphussmiling