• Stars
    star
    176
  • Rank 216,987 (Top 5 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

High-level, fluent and chainable API provided library for puppeteer.

Rize

Circle CI Build Status Coverage License NPM Version NPM Downloads

Rize is a high-level, fluent and chainable API provided library which let you use puppeteer simply.

"Rize" is pronounced like /ɾize/, not /raɪzɪ/. "Rize" is one of characters in Is the Order a Rabbit?.

Translations

简体中文

We need your help to translate the docs!

Installation

You should install puppeteer at the same time.

yarn add --dev puppeteer rize

or via npm:

npm install --save-dev puppeteer rize

If you are in China, you may specify Chromium binary mirror.

On Linux or macOS:

PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors yarn add --dev puppeteer rize

On Windows:

SET PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors yarn add --dev puppeteer rize

Basic Usage

Import

It's recommended to use ES-style import:

import Rize from 'rize'

Or using CommonJS-style import, if you don't use any build tools:

const Rize = require('rize')

Getting Started

Just like this:

const rize = new Rize()

You can pass some options to the constructor, and these options are puppeteer's options:

const rize = new Rize({ headless: false })

All Rize's APIs are chainable, so you can do something like this:

const rize = new Rize()
rize
  .goto('https://github.com/')
  .type('input.header-search-input', 'node')
  .press('Enter')
  .waitForNavigation()
  .assertSee('Node.js')
  .end()  // Don't forget to call `end` function to exit browser!

All available APIs are listed here.

Documentation

Please visit rize.js.org

Contribution

Before you contribute to Rize, please read Contributing Guide.

License

MIT License

Copyright (c) 2018-present Pig Fang

More Repositories

1

typed-query-selector

Better typed `querySelector` and `querySelectorAll`.
TypeScript
718
star
2

zsh-yarn-autocompletions

Zsh plugin for Yarn autocompletions.
Rust
578
star
3

type-gymnastics

Collection of wonderful TypeScript type gymnastics code snippets.
TypeScript
362
star
4

tiny-package-manager

Learn how npm or Yarn v1 works.
TypeScript
344
star
5

pnpm-shell-completion

Complete your pnpm command fastly.
Shell
107
star
6

swc-plugin-vue-jsx

SWC plugin for transforming Vue JSX.
Rust
91
star
7

markup_fmt

Configurable HTML, Vue, Svelte, Astro, Angular, Jinja, Twig, Nunjucks and Vento formatter with dprint integration.
Rust
90
star
8

malva

Configurable, smart and fast CSS, SCSS, Sass and Less formatter with dprint integration.
Rust
70
star
9

TypeCake

TypeCake is a language that compiles to TypeScript types. (WIP)
TypeScript
50
star
10

raffia

CSS, Sass, SCSS and Less parser, all in one.
Rust
49
star
11

swc-css-playground

Playground for SWC CSS.
Svelte
29
star
12

icd

Powerful `cd` command with fuzzy-search tool.
Shell
27
star
13

pnpm-docker

Docker images that includes pnpm.
Dockerfile
17
star
14

flac.wasm

Run official FLAC tools `flac` and `metaflac` as WebAssembly, on browsers or Deno.
TypeScript
17
star
15

node-green

Check Node.js ECMAScript compatibility.
TypeScript
17
star
16

swc-playground

Repository has been transferred to swc-project/swc-playground.
TypeScript
16
star
17

pretty_yaml

Semi-tolerant and configurable YAML formatter with dprint integration.
Rust
16
star
18

node-green-cli

CLI for "node-green" module.
TypeScript
12
star
19

swc-plugin-react-remove-properties

SWC plugin for removing React properties.
Rust
12
star
20

pluggable-babel-eslint

Pluggable babel-eslint.
JavaScript
8
star
21

pazza

Parser combinators library which works on browsers, Deno and Node.js.
TypeScript
7
star
22

eslint-playground

Creating an ESLint rule instantly.
TypeScript
7
star
23

dgut-network-login

自动登录 DGUT 的校园网。
JavaScript
5
star
24

matchable

`matchable` provides a convenient enum for checking if a piece of text is matching a string or a regex.
Rust
5
star
25

id3

Library for manipulating ID3 tag.
TypeScript
4
star
26

acorn-typescript

Acorn plugin for parsing TypeScript.
JavaScript
3
star
27

simple-base

A simple base36/base58 converter.
TypeScript
3
star
28

hexo-theme-straight

Clean and simple Hexo theme.
Jinja
3
star
29

pretty_graphql

Configurable GraphQL formatter.
Rust
3
star
30

web-guessing-game

Guess logos of JavaScript/CSS libraries.
Svelte
2
star
31

cue-splitter

Split audio into different tracks with Cue Sheet in comprehensive UI.
TypeScript
2
star
32

eslint-formatter-beauty

Beautiful ESLint formatter.
TypeScript
1
star
33

css_dataset

Collections of CSS dataset about functions, properties, etc.
Rust
1
star
34

bs-plugin-kumiko-stickers

PHP
1
star
35

eslint-config-gplane

Shareable ESLint config for Pig Fang's projects
JavaScript
1
star
36

raffia-playground

AST viewer for Raffia.
TypeScript
1
star
37

rollup-on-deno

Run Rollup on Deno.
TypeScript
1
star
38

tiny_pretty

Tiny implementation of Wadler-style pretty printer.
Rust
1
star
39

blog

1
star
40

vscode-beefweb

Control your foobar2000 or deadbeef via beefweb server.
TypeScript
1
star
41

malva-playground

Format CSS/Sass/SCSS/Less code with Malva on browsers.
Svelte
1
star