/ c4f / front / node_modules / @netlify / functions /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]dist/9 months ago -  
[   ]LICENSE9 months ago1.1K 
[TXT]README.md9 months ago2.2K 
[   ]package.json9 months ago2.8K 
README.md

functions

Build Node

JavaScript and TypeScript utilities for Netlify Functions.

Installation

npm install @netlify/functions

Usage

On-demand Builders

To use On-demand Builders, wrap your function handler with the builder function.

Scheduled Functions (currently in beta)

To use Scheduled Functions, wrap your function handler with the schedule function.

TypeScript typings

This module exports typings for authoring Netlify Functions in TypeScript.

import { Handler } from '@netlify/functions'

const handler: Handler = async (event, context) => {
  return {
    statusCode: 200,
    body: JSON.stringify({ message: 'Hello World' }),
  }
}

export { handler }

The following types are exported:

Contributors

Please see CONTRIBUTING.md for instructions on how to set up and work on this repository. Thanks for contributing!

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80