0.3.0 • Published 8 years ago

reading_view v0.3.0

Weekly downloads
11
License
MPL-2.0
Repository
github
Last release
8 years ago

Reading View(reading_view)

View web pages in a reading mode.

NPM

Desciption

io.js module for generating customisable easy to read html on the go.

This project can be found on NPM and installed through that.

Important: Project is in development stage, so big changes could be made!

Example: readerview.mopso.co

Installation

npm install reading_view

Current Version

0.2.1

Using

Getting Started

var readingView = require('reading_view');

readingView.convert(url, params, callback);

Parametrs

Convert Function
ParamertDescriptionType
urlURL of web page to convert into reading viewUrl
paramsCustomisation Parametrs for convertationObject Params
callbackFunction that is called when convertation is done, passes err - for errors, res - html string converted for readingFunction
Params Object in Convert Function
ParamertDescriptionTypeDefault
articleQueryJQuery stiled query to find current article bodyStringarticle
tagsToIncludeEach element is a JQuery stiled query to fetch elements inside main articleArray'p','img'
titleParametrs to define title configurationObject Title
Title Object
ParamertDescriptionTypeDefault
textOnlyFetch only text from title without current tagsBooleanfalse
tagToWrapHtml tag name, that is wrapping title if textOnly is trueString'h2'
queryJQuery styled query to fetch header in article, if there are more than one, fetches firstString"${self.articleSelector} h${i}:first" where i is Int from 1 to 6
0.3.0

8 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago