Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hughbe/vbafilereader
Swift definitions for structures, enumerations and functions defined in [MS-OVBA]
https://github.com/hughbe/vbafilereader
Last synced: 2 days ago
JSON representation
Swift definitions for structures, enumerations and functions defined in [MS-OVBA]
- Host: GitHub
- URL: https://github.com/hughbe/vbafilereader
- Owner: hughbe
- Created: 2020-11-29T12:53:41.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-16T14:36:34.000Z (about 4 years ago)
- Last Synced: 2024-11-10T12:47:22.808Z (about 2 months ago)
- Language: Swift
- Size: 59.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VBAFileReader
Swift definitions for structures, enumerations and functions defined in [MS-OVBA](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-ovba/)
## Example Usage
Add the following line to your project's SwiftPM dependencies:
```swift
.package(url: "https://github.com/hughbe/VBAReader", from: "1.0.0"),
``````swift
import CompoundFileReader
import MsgReaderlet data = Data(contentsOfFile: ".doc")!
let parentFile = try CompoundFile(data: data)
var rootStorage = parentFile.rootStorage
let file = try VBAFile(storage: rootStorage.children["Macros"]!)
for module in file.vbaStorage.modules {
print(module.sourceCode)
}
```