UNPKG

1.3 kBJavaScriptView Raw
1'use strict'
2
3// mappings - map elements to property names
4
5module.exports = {
6 channel: new Map([
7 ['atom:link', 'link'],
8 ['copyright', 'copyright'],
9 ['description', 'summary'],
10 ['image', 'image'],
11 ['itunes:author', 'author'],
12 ['itunes:image', 'image'],
13 ['itunes:subtitle', 'subtitle'],
14 ['itunes:summary', 'summary'],
15 ['language', 'language'],
16 ['link', 'link'],
17 ['pubDate', 'updated'],
18 ['title', 'title'],
19 ['ttl', 'ttl']
20 ]),
21 item: new Map([
22 ['author', 'author'],
23 ['content:encoded', 'summary'],
24 ['description', 'summary'],
25 ['enclosure', 'enclosure'],
26 ['guid', 'id'],
27 ['itunes:author', 'author'],
28 ['itunes:duration', 'duration'],
29 ['itunes:image', 'image'],
30 ['itunes:subtitle', 'subtitle'],
31 ['itunes:summary', 'summary'],
32 ['link', 'link'],
33 ['media:thumbnail', 'image'],
34 ['pubDate', 'updated'],
35 ['title', 'title']
36 ]),
37 feed: new Map([
38 ['id', 'id'],
39 ['link', 'link'],
40 ['name', 'author'],
41 ['subtitle', 'subtitle'],
42 ['title', 'title'],
43 ['updated', 'updated']
44 ]),
45 entry: new Map([
46 ['content', 'summary'],
47 ['email', 'author'],
48 ['id', 'id'],
49 ['link', 'link'],
50 ['summary', 'summary'],
51 ['title', 'title'],
52 ['updated', 'updated']
53 ])
54}