You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***src:***string* The directory containing the source files.
142
+
***dest:***string* The target compendium pack.
143
+
***options:***object*
144
+
***nedb:***boolean = false* Whether to operate on a NeDB database, otherwise a LevelDB database is assumed.
145
+
***yaml:***boolean = false* Whether the source files in YAML format, otherwise JSON is assumed.
146
+
***log:***boolean = false* Whether to log operation progress to the console.
147
+
***recursive:***boolean = false* Whether to recurse into child directories under **src**, otherwise only source files located directly under **src** will be used.
148
+
***transformEntry:***(entry: object): Promise<false|void>* A function that is called on every entry. Returning *false* indicates that the entry should be discarded.
Extract the contents of a compendium pack into individual source files for each primary Document.
153
+
154
+
#### Parameters
155
+
156
+
***src:***string* The source compendium pack.
157
+
***dest:***string* The directory to write the extracted files into.
158
+
***options:***object*
159
+
***nedb:***boolean = false* Whether to operate on a NeDB database, otherwise a LevelDB database is assumed.
160
+
***yaml:***boolean = false* Whether the source files in YAML format, otherwise JSON is assumed.
161
+
***log:***boolean = false* Whether to log operation progress to the console.
162
+
***documentType:***string* For NeDB operations, a **documentType** must be provided. This should be the same as the pack's *type* field in the *module.json* or *system.json*.
163
+
***transformEntry:***(entry: object): Promise<false|void>* A function that is called on every entry. Returning *false* indicates that the entry should be discarded.
164
+
***transformName:***(entry: object): Promise<string|void>* A function that is called on every entry. The value returned from this will be used as the entry's filename. If nothing is returned, an auto-generated name will be used instead.
165
+
119
166
## Contributing
120
167
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
0 commit comments