Socket
Socket
Sign inDemoInstall

opml-generator

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    opml-generator

opml generator for node.js


Version published
Weekly downloads
163
increased by44.25%
Maintainers
1
Install size
45.3 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 07 May 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc