2.0.0-alpha.1 • Published 5 years ago
@kohlmannj/opml-generator v2.0.0-alpha.1
opml-generator.js
Generate opml from object.
Installation
npm install opml-generator
Usage
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
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
MIT
2.0.0-alpha.1
5 years ago
2.0.0-alpha.0
5 years ago