Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
opml generator for node.js
JavaScript
branch: master

1.1.1

latest commit 438439d17f
@azu authored
Failed to load latest commit information.
tests
.travis.yml add travis
LICENSE init
opml-generator.js Cleaning up
package.json
readme.md add travis

readme.md

opml-generator.js Build Status

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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

Something went wrong with that request. Please try again.