git ssb


0+

cel / pull-paginate



Branch:

cel committed Initial commitLatest: a754e95 on 1/25/2017, 9:22:11 PM
📄README.md
📄index.js
📄package.json

pull-paginate

Wrap a pull-stream, for pagination. This piece of logic lets you wrap the beginning and end of a stream, and also handle an empty stream. The intended use case is to render a stream to HTML while adding a "previous" hyperlink at the beginning, and a "next" hyperlink at the end, where those hyperlinks include information about the position of the stream at the first or last value respectively.

This module was factored out of git-ssb-web.

API

var paginate = require('pull-paginate')

License

Copyright (c) 2016, 2017 Charles Lehner

Usage of the works is permitted provided that this instrument is retained with the works, so that any entity that uses the works is notified of this instrument.

DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.


Built with git-ssb-web