htmldocparser

1.1.0 • Public • Published

HTML Document Parser

Here's a sample usage:

const express = require('express');
let enc = require('htmldocparser').enc;
const app = express();

app.get('/', (req, res) => {
  res.send(enc('Parser Test', "hello world!"));
});

app.listen(3000, () => {
  console.log('server started');
});

Parameters

enc(title, content, head, navigation, defaultstyle);

Title

The title of your document.

Content

The actual document content.

Head

Optional Additional HTML content in the head tag. For example:

<link rel="stylesheet" href="style.css" />

Navigation

Optional A navigation bar that shows above your content.

Defaultstyle

Optional If true, will activate a default CSS style.

/htmldocparser/

    Package Sidebar

    Install

    npm i htmldocparser

    Weekly Downloads

    5

    Version

    1.1.0

    License

    none

    Unpacked Size

    8.9 kB

    Total Files

    7

    Last publish

    Collaborators

    • lanksy