/ student-intifada / node_modules / @netlify / functions /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]dist/a year ago -  
[   ]LICENSEa year ago1.1K 
[TXT]README.mda year ago2.2K595aea1 more query options + view options [كارل مبارك]
[TXT]internal.d.tsa year ago 81  
[   ]package.jsona year ago3.2Kafd0ccc remove unused [كارل مبارك]
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