Serverless Utils
General serverless utilities for our projects.
This module is meant for use by serverless components, plugins as well as used by the core of serverless. It allows components and plugins to depend directly upon these utility methods and avoid issues when the core of serverless changes.
It also supplies a number of our basic utilities (data, error, fetch, fs, path, etc). We pull these utilities from here so that when we want to improve how one of these methods works we don't have to traverse through all of our code bases and change the imports.
Website • Slack • Newsletter • Forum • Meetups • Twitter • We're Hiring
Project Status
Documentation
Please review the API documentation.
Install
npm install --save @serverless/utils
Usage
import { reduce } from '@serverless/utils'
const array = [ 'foo', 'bar' ]
const result = reduce(
(acc, val) => acc + val,
'',
array
)
console.log(result)