do-functions

GitHub | do-functions NPM | do-functions-server NPM

Easily develop and deploy serverless functions on Digital Ocean.

Basic usage

npm i do-functions
import {wrapFunction} from 'do-functions'

async function logic(args) {
  return 'Hello world'
}

export const main = wrapFunction(logic)

Run do-functions {srcDir} {outDir} to build functions for deployment.

Run do-functions-server to start a local development server which serves your functions as endpoints on localhost.

See the /example directory of the Git repository for a complete example.

See getting started for a guide to get started using this library to develop and deploy Functions on Digital Ocean.

Docs directory