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

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]dist/10 months ago -  
[TXT]internal.d.ts10 months ago 81  
[   ]LICENSE10 months ago1.1K 
[TXT]README.md10 months ago2.2K595aea1 more query options + view options [كارل مبارك]
[   ]package.json10 months 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