JSPM

  • Created
  • Published
  • Downloads 1297469
  • Score
    100M100P100Q185277F
  • License Apache-2.0

General serverless utilities

Package Exports

  • @serverless/utils

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@serverless/utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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 (config, data, 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.

WebsiteSlackNewsletterForumMeetupsTwitterWe're Hiring

Project Status

serverless Build Status license coverage

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) //=> 'foobar'