normalizePropertyReferenceIdentifier
Normalize a property reference identifier to canonical URL form. Property reference identifiers must be canonical absolute `https` URLs without userinfo.
Node Runtime Required
This function requires a Node.js runtime and is disabled in the browser docs preview.
normalizePropertyReferenceIdentifier(referenceIdentifier, options)
Parameters
referenceIdentifierstring*
Property reference identifier.
optionsNormalizePropertyReferenceIdentifierOptions
Normalization options.
skipUrlNormalization
Returns
Prop
Type
import { normalizePropertyReferenceIdentifier } from '@fide-work/context-protocol';
const result = normalizePropertyReferenceIdentifier(
'https://schema.org/name',
{"skipUrlNormalization":false}
);Type Definitions
type NormalizePropertyReferenceIdentifierOptions
Options for property reference identifier normalization.
NormalizePropertyReferenceIdentifierOptionsProperties
Prop
Type