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
JavaScript utilities for Netlify Functions.
Installation
npm install @netlify/functionsUsage
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!