next-page-kit
Helper for handle next-next page
Last updated a year ago by magicdawn .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install next-page-kit 
SYNC missed versions from official npm registry.

next-page-kit

Helper for handle next-next page

Build Status Coverage Status npm version npm downloads npm license

Install

npm i next-page-kit -S

API

const NextPage = require('next-page-kit');

n = new NextPage

  • init/postInit : hook function. return a promise is also supported
  • action/hasNext/getNext: the logic
const n = new NextPage({
  init() {

  },
  postInit() {

  },

  action($) {

  },
  hasNext($) {

  },
  getNext($) {

  }
});

yield n.run()

n.run

n.run(url, options)
  • url: the entry
  • options:
    • enc: the html encoding
    • limit: page limit

Changelog

CHANGELOG.md

License

the MIT License http://magicdawn.mit-license.org

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (8)
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |