Type: Function

How to get serializePseudoAttributes?


import serializePseudoAttributes from 'fontoxml-dom-utils/src/serializePseudoAttributes.js'

Serialize an object to a pseudoAttributes string PseudoAttributes are an approach to have attributes in for instance processing instructions.

Only objects containing the primary data types String, Number or Boolean are supported. They will, however all be coerced to strings. Prototypes of the inputted object will not be handled. Please use only Object.create(null) like object as inputs

Only quotes and backslashes will be escaped.

The pseudo attributes will be sorted alphabetically.


  1. deserializedAttributes


    Type: Object

    The deserialized attributes which must be serialized


Type: String

The serialized representation of the given pseudoAttributes