---
title: moduleName
framework: swift-package-manager
role: symbol
role_heading: Instance Property
path: swift-package-manager/documentation/packageplugin/sourcemoduletarget/modulename
---

# moduleName

The name of the module produced by the target.

## Declaration

```swift
var moduleName: String { get }
```

## Discussion

Discussion Derived from the target name, though future Swift package manager versions may allow this to be customized.

## See Also

### Inspecting a Source Module Target

- [kind](swift-package-manager/documentation/packageplugin/sourcemoduletarget/kind.md)
- [linkedLibraries](swift-package-manager/documentation/packageplugin/sourcemoduletarget/linkedlibraries.md)
- [linkedFrameworks](swift-package-manager/documentation/packageplugin/sourcemoduletarget/linkedframeworks.md)
- [pluginGeneratedSources](swift-package-manager/documentation/packageplugin/sourcemoduletarget/plugingeneratedsources.md)
- [pluginGeneratedResources](swift-package-manager/documentation/packageplugin/sourcemoduletarget/plugingeneratedresources.md)
- [sourceFiles](swift-package-manager/documentation/packageplugin/sourcemoduletarget/sourcefiles.md)
- [sourceFiles(withSuffix:)](swift-package-manager/documentation/packageplugin/sourcemoduletarget/sourcefiles(withsuffix:).md)
