How to use @faasjs/func - 1 common examples

To help you get started, we’ve selected a few @faasjs/func examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github faasjs / faasjs / benchmarks / func.js View on Github external
const Benchmark = require('benchmark');
const Func = require('@faasjs/func').Func;
const suite = new Benchmark.Suite;

process.env.FaasLog = 'error';

const handler = new Func({
  plugins: [],
  handler() {
    return;
  }
}).export().handler;

suite
  .add('create', function () {
    new Func({
      plugins: [],
      handler() {
        return;
      }
    });
  })
  .add('export', function () {

@faasjs/func

FaasJS's function module.

MIT
Latest version published 2 days ago

Package Health Score

78 / 100
Full package analysis

Popular @faasjs/func functions

Similar packages