tm-content-parser
Trinity Mirror Content Type Parser
Last updated 3 months ago by giuseppe.battista .
ISC · Repository · Original npm · Tarball
$ cnpm install tm-content-parser 
SYNC missed versions from official npm registry.

tm-content-parser

This module provides a universal content parser. It only exposes one parse function.

Usage

const contentParser = requrire('tm-content-parser');

contentParser(config, xhtml, content);

Example Config

{
    "contentType":{
        "types":[
            "news",
            "opinion",
            "picture",
            "youtubeVideo",
            "brightcoveVideo",
            "gallery",
            "quiz",
            "html"
        ],
        "disallowedEmbedTypes":[
            "live-event", 
            "news", 
            "opinion"
        ]
    }
}
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |