Nog CLI Developer Guide - v0.11.1
    Preparing search index...

    Function isValidIdentifier

    • Checks whether a name can be emitted as a bare TypeScript identifier. Names that fail this check (for example the OSM-style openGeoDB:postal_codes returned by some specs) must be emitted as quoted members instead of being renamed, since the wire format depends on the original key.

      Parameters

      • name: string

        The name to check

      Returns boolean

      true if the name is a valid identifier, false otherwise