Nautical Poseidon Mythology

    notitia

    1.1.12 • Public • Published

    # Notitia

    Convert Regular HTML article Pages into AMP Pages or Facebook Instant Articles

    Information

    Notitia (Latin for Knowledge) is a node module. Notitia converts basic HTML based articles into either AMP (Accelerated Mobile Pages) markup or into Facebook Instant Article Markup. Notitia automates the process of converting plain html code into these two article formats, eliminating the need to create multiple copies of the same article.

    Installation

    • Install using NPM
    npm install notitia
    
    • Import to your Project
    import * as notitia from 'notitia';

    Methods

    Build Facebook Instant Article

    let Not = new Notitia(contents);
    let instantArticle = Not.createFBInstantArticle(contents);
    //Returns Facebook Instant Article Markup

    Build AMP Page HTML

    let Not = new Notitia(contents);
    let ampPage = Not.createAMPPage(contents);
    //Returns AMP Complient HTML

    Build AMP Page HTML (Body Only)

    let Not = new Notitia(contents);
    let ampPageBody = Not.createAMPBody(contents);
    //Returns AMP Complient HTML (Body Only)

    Note: CreateAMPBody Method will only return the body of the AMP HTML Page. This will not pass the AMP Validator. For More info visit AMP's Documentation

    Testing

    Jest is used to run tests on Notitia

    npm run test
    

    Dependencies

    License

    MIT

    Install

    npm i notitia

    DownloadsWeekly Downloads

    1

    Version

    1.1.12

    License

    ISC

    Last publish

    Collaborators

    • mmadden1495