Skip to content

jlaitio/utils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

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'

About

General serverless utilities

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.7%
  • Other 0.3%