Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

html-streamer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-streamer

streaming templating

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

Html Streamers

Travis npm package

still developing

Streaming html response for each 'doc' from database

just have an html file with your document props as inner text just like handlebars

<h1>TEST</h1>
<div>
    <h2>you did it {{name}}</h2>
    <p>{{age}}</p>
    <p>{{date}}</p>
</div>

Stream your docs to html streamer

[
    {
        "name": "devin",
        "age": 1,
        "birth": 1551577903697
    },
    {
        "name": "jim",
        "age": 2,
        "birth": 1551577903698
    }
]
db.find().stream()
    .pipe(htmlStream)
    .pipe(response)

Out put will look like this

<h1>TEST</h1>
<div>
    <h2>you did it devin</h2>
    <p>1</p>
    <p>1551577903697}</p>
</div>

Installing and using

To use this with hyper simply add hyper_auto-complete to your .hyper.js

npm i html-streamer

or clone the git repo and help out

Keywords

FAQs

Package last updated on 09 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc