New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

hyperscroll

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

hyperscroll

scroll based to hyperloadmore interface

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

hyperscroll

scroll based to hyperloadmore interface

when you scroll to the bottom, it emits a readymore {bottom: true} event, and when you scroll to the top it emits a top event.

example

var h = require('hyperscript')
var pull = require('pull-stream')
var stream = require('hyperloadmore/stream')
var HyperScroll = require('./')

var content = h('div.content', h('h1', 'hello'))

document.body.appendChild(h('div.screen',
  //create an element that fits the whole screen exactly,
  //this will make everything work.
  {style: {position: 'absolute', top: '0px', bottom: '0px', left: '0px', right: '0px'}},
  HyperScroll(content)
))

pull(
  old_source, //old messages, append to bottom of screen.
  stream.bottom(content)
)

pull(
  new_source, //new messages, append to top of screen
  stream.top(content)
)

License

MIT

FAQs

Package last updated on 03 Dec 2017

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