opmltotext

Parses OPML and returns text.

opmltotext

This is a node.js library that parses OPML and returns text. It generates output using specified indentation and comment prefix strings.

$ npm install opmltotext
var fs = require('fs')
  , OpmlToText = require('opmltotext')
 
var opml = fs.readFileSync('example.opml', 'utf8')
var text = OpmlToText.getText(opml)
  • opmlText String
  • commentPrefix String default '//'
  • indentation String default ' ' (two spaces)