Skip to content

Quickly inspect values during Zeit Now Integrations development.

Notifications You must be signed in to change notification settings

leoafarias/zeit-integration-inspect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zeit-integration-inspect

Quickly inspect values during Zeit Integrations development.

Screenshot

Install

yarn add --dev zeit-integration-inspect

Usage

const inspectPanel = require("zeit-integration-inspect");

async function handler(options){
    return htm`
        <Page>
            <Container>
                <H2>Your Integration</H2>
                <P>Awesome description.</P>
            </Container>
            ${await inspectPanel(options, values)}
        </Page>
    `;
}

module.exports = withUiHook(handler);

Parameters

  • options - values that are passed down from withUiHook middleware.

  • values - These are values you would like to display during development.

Default Panels

The panel will display metadata, clientState, action by default from the options parameter.

You can always choose to hide them.

About

Quickly inspect values during Zeit Now Integrations development.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published