Dah! It's Serverless
Flex the power of serverless functions with Dah!
npm install daaah
Import/Require Daaah
const dah = require('daaah');
Retrieve a list of all functions
  async function getAllFunctions() {
    try {
      const functionsList = await dah.getFunctions(); 
      console.log(functionsList);
    } catch (error) {
      console.error(error);
    }
  }
Post a new function
  async function createNewFunction() {
    try {
      const func = function myFunction(a, b) {
        return a + b;
      };
  
      const posted = await dah.postFunction(func);
      console.log(posted);
    } catch (error) {
      console.error(error);
    }
  }
Call an existing function
  async function executeFunction() {
    try {
      const funcName = 'myFunction';
      const params = [2, 3];
  
      const result = await dah.callFunction(funcName, params);
      console.log(result);
    } catch (error) {
      console.error(error);
    }
  }