The Serverless Function Development Kit (FDK)
The Serverless FDK is designed to ease the adoption of serverless technology. It provides a simple middleware abstraction for adding functionality and migrating existing solutions (like Express) without having to rewrite your code. It further enables runtime interaction with Serverless Services including invoking functions and dispatching events to the target Service.
// index.js
const fdk = require('@serverless/fdk')
const myHandler = fdk()
.handler(() => 'Hello World')
module.exports.myHandler = myHandler
# serverless.yml
service:
name: my-service
functions:
myHandler:
handler: index.myHandler
Full API documentation - Learn about available methods and concepts.
Plenty of examples - Examples for various cloud providers and uses of functionality.
npm install --save @serverless/fdk