json-fs-query
    Preparing search index...

    Function assertValidName

    • Throw unless this is a name the query language allows (letters, digits, _ and -). Record and field names end up in file paths and row keys, so a name like ../x from a direct JS call must be refused before it reaches storage.

      Parameters

      • name: unknown
      • where: string

        What is being named, for the error (e.g. create()).

      Returns void