UNPKG

1.08 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.Feed = void 0;
4var atom1_1 = require("./atom1");
5var json_1 = require("./json");
6var rss2_1 = require("./rss2");
7var Feed = (function () {
8 function Feed(options) {
9 var _this = this;
10 this.items = [];
11 this.categories = [];
12 this.contributors = [];
13 this.extensions = [];
14 this.addItem = function (item) { return _this.items.push(item); };
15 this.addCategory = function (category) { return _this.categories.push(category); };
16 this.addContributor = function (contributor) { return _this.contributors.push(contributor); };
17 this.addExtension = function (extension) { return _this.extensions.push(extension); };
18 this.atom1 = function () { return atom1_1.default(_this); };
19 this.rss2 = function () { return rss2_1.default(_this); };
20 this.json1 = function () { return json_1.default(_this); };
21 this.options = options;
22 }
23 return Feed;
24}());
25exports.Feed = Feed;
26//# sourceMappingURL=feed.js.map
\No newline at end of file