opml generator for node.js
npm install @kohlmannj/opml-generatorGenerate opml from object.
``sh`
npm install opml-generator
` js`
var header = {
"title": "title-text",
"dateCreated": new Date(2014, 2, 9),
"ownerName": "azu"
};
var outlines = [
{
text: "txt",
title: "title-text",
type: "rss",
"xmlUrl": "http://example.com/rss",
"htmlUrl": "http://example.com/"
},
{
text: "txt",
title: "title-text",
type: "rss",
"xmlUrl": "http://example.com/rss",
"htmlUrl": "http://example.com/"
}
];
opml(header, outlines);// => XML
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
MIT