JSPM

  • Created
  • Published
  • Downloads 665792
  • Score
    100M100P100Q222226F
  • License MIT

JavaScript utilities for Netlify Functions

Package Exports

  • @netlify/functions

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@netlify/functions) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@netlify/functions

Build Coverage Status Node

JavaScript utilities for Netlify Functions.

Installation

npm install @netlify/functions

Usage

Builder Functions

const { builderFunction } = require('@netlify/functions')

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

exports.handler = builderFunction(handler)

Contributors

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