AppleSauce
Preparing search index...
applesauce-core
Helpers
encodeDecodeResult
Function encodeDecodeResult
encodeDecodeResult
(
result
:
|
{
data
:
EventPointer
;
type
:
"nevent"
}
|
{
data
:
ProfilePointer
;
type
:
"nprofile"
}
|
{
data
:
AddressPointer
;
type
:
"naddr"
}
|
{
data
:
string
;
type
:
"npub"
}
|
{
data
:
Uint8Array
;
type
:
"nsec"
}
|
{
data
:
string
;
type
:
"note"
}
,
)
:
|
""
|
`
nprofile1
${
string
}
`
|
`
nevent1
${
string
}
`
|
`
naddr1
${
string
}
`
|
`
nsec1
${
string
}
`
|
`
npub1
${
string
}
`
|
`
note1
${
string
}
`
Encodes the result of nip19.decode
Parameters
result
:
|
{
data
:
EventPointer
;
type
:
"nevent"
}
|
{
data
:
ProfilePointer
;
type
:
"nprofile"
}
|
{
data
:
AddressPointer
;
type
:
"naddr"
}
|
{
data
:
string
;
type
:
"npub"
}
|
{
data
:
Uint8Array
;
type
:
"nsec"
}
|
{
data
:
string
;
type
:
"note"
}
Returns
|
""
|
`
nprofile1
${
string
}
`
|
`
nevent1
${
string
}
`
|
`
naddr1
${
string
}
`
|
`
nsec1
${
string
}
`
|
`
npub1
${
string
}
`
|
`
note1
${
string
}
`
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
AppleSauce
Loading...
Encodes the result of nip19.decode