Options
All
  • Public
  • Public/Protected
  • All
Menu

@paychex/adapter-node

import { node } from '@paychex/adapter-node';

cjs

const { node } = require('@paychex/adapter-node');

Index

Interfaces

Functions

Functions

  • A data adapter that uses the NodeJS built-in https library to convert a Request into a Response. Can be passed to the @paychex/core createDataLayer factory method to enable data operations on NodeJS.

    example
    const proxy = data.createProxy();
    const { createRequest, fetch, setAdapter } = data.createDataLayer(proxy, node);

    Parameters

    • request: Request

      The Request to convert into a Response.

    Returns Promise<Response>

    A Promise resolved with the Response.