Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
This is a node.js library that parses OPML and returns text.
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
Readme.md
opmltotext.js
package.json

Readme.md

opmltotext

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

NPM

Installation

$ npm install opmltotext

Example

var fs = require('fs')
  , OpmlToText = require('opmltotext')

var opml = fs.readFileSync('example.opml', 'utf8')
var text = OpmlToText.getText(opml)

API

OpmlToText.getText(opmlText, [commentPrefix], [indentation])

  • opmlText String
  • commentPrefix String default '//'
  • indentation String default ' ' (two spaces)
Something went wrong with that request. Please try again.