forked from retorquere/zotero-file-hierarchy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.js
More file actions
executable file
·25 lines (23 loc) · 728 Bytes
/
header.js
File metadata and controls
executable file
·25 lines (23 loc) · 728 Bytes
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
const fs = require('fs')
const body = fs.readFileSync('File Hierarchy.js', 'utf-8')
const header = JSON.stringify({
'translatorID': '86ffd88b-6f4e-4bec-a5be-839c1034beb2',
'label': 'File Hierarchy',
'description': 'Export files according to collection organisation',
'creator': 'Emiliano Heyns',
'target': 'txt',
'minVersion': '4.0.27',
'maxVersion': '',
'configOptions': {
'getCollections': true
},
'displayOptions': {
'exportFileData': true
},
'translatorType': 2,
'browserSupport': 'gcsv',
'priority': 100,
'inRepository': false,
'lastUpdated': (new Date).toISOString().replace('T', ' ').replace(/\..*/, ''),
}, null, 2)
fs.writeFileSync('File Hierarchy.js', header + '\n\n' + body)