1.13.1 • Published 22 days ago

@perfsee/sdk v1.13.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
22 days ago

@perfsee/sdk

Perfsee sdk and command line tools

Installation

npm install -g @perfsee/sdk

Usage

Take snapshot

Take a snapshot for all pages of the project.

perfsee take-snapshot -p <your-project-id> --token <your-access-token>

This command requires the project id from -p, --project and the access token from --token or environment variable PERFSEE_TOKEN, you can create the token from https://perfsee.com/access-token.

You can filter the pages by appending page names to the command.

For example take a snapshot for Home Page and User Page:

perfsee take-snapshot -p <your-project-id> --token <your-access-token> "Home Page" "User Page"

Webhook type

This package also provides TypeScript definitions for the Perfsee webhook.

You can use it on your webhook server with the code below. Learn more in our Webhook Guide.

import express from 'express'
import { WebhookEvent } from '@perfsee/sdk'

const app = express()

app.post('/callback', express.json(), function (req, res) {
  const json = req.body as WebhookEvent
  console.log(json)
})

app.listen(3001)

License

This project is licensed under the Apache-2.0 License.

1.13.1

22 days ago

1.13.0

22 days ago

1.12.2

4 months ago

1.12.0

4 months ago

1.11.0

5 months ago

1.10.0

5 months ago

1.9.0

10 months ago

1.8.5

10 months ago

1.8.4

10 months ago

1.8.3

11 months ago

1.8.2

12 months ago

1.8.1

12 months ago

1.8.0

12 months ago

1.5.4

1 year ago

1.5.3

1 year ago

1.5.2

1 year ago

1.6.0

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.1.1

1 year ago

1.1.0

2 years ago

1.0.0

2 years ago

1.0.0-alpha.4

2 years ago

1.0.0-alpha.3

2 years ago

1.0.0-alpha.2

2 years ago

1.0.0-alpha.1

2 years ago