@web-printer/zhubai
v0.4.0
Published
> **Warning** > > some pages may be need to login and pay to read, so you may need to login and pay to read before print.
Downloads
4
Readme
@web-printer/zhubai
Warning
some pages may be need to login and pay to read, so you may need to login and pay to read before print.
Installation
pnpm i @web-printer/zhubai
import { Printer } from "@web-printer/core"
import zhubai from "@web-printer/zhubai"
new Printer()
.use(
zhubai({
url: "https://hsxg.zhubai.love/"
})
)
.print("海上星光")
Options
{
/**
* Url of the newsletter home page that you want to print
* @example https://hsxg.zhubai.love/
*/
url: string
/**
* When the article list page has a lot of articles, you can set maxPages to limit, especially endless loading.
* @default Infinity
*/
maxPages?: number
/**
* Interval of each scroll
* @default 500
* @unit ms
*/
interval?: number
}
License
MIT ©