Skip Navigation
Type MethodMethod

moduleKey(for:)

Returns the key under which the base URL of a module is stored.

static func moduleKey(for name: String) -> String

Parameters

name

The name of a module, as written in source code, in a target name or in a documentation path.

Return Value

The name in lower case, with hyphens replaced by underscores.