-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunExamples.js
More file actions
44 lines (36 loc) · 1.19 KB
/
runExamples.js
File metadata and controls
44 lines (36 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
const examples = require('./metadataExamples')
;(async () => {
try {
await examples.setLicense() // You can pass the licensePath as an argument, it's optional
await Promise.all([
// NOTE: Please uncomment the example you want to try out
// Basic usage
examples.cleanMetadata(),
examples.findMetadataProperties(),
examples.getDocumentInfo(),
examples.removeMetadataProperties(),
examples.setMetadataProperties(),
//Advanced usage
examples.addingMetadata(),
examples.updatingMetadata(),
examples.removingMetadata(),
examples.extractingMetadata(),
examples.exportingMetadataProperties(),
examples.gettingKnownPropertyDescriptors(),
examples.workingWithInterpretedValues(),
examples.extractUsingType(),
examples.loadFromLocalDisk(),
examples.readBasicExifProperties(),
examples.removeExifMetadata(),
examples.readBasicIptcProperties(),
examples.removeIptcMetadata(),
examples.readXmpProperties(),
examples.removeXmpMetadata(),
])
console.log('The end of process.')
process.exit(0)
} catch (err) {
console.error(err)
process.exit(1)
}
})()