New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@raydeck/serverless-yaml

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@raydeck/serverless-yaml

Inherit YAML changes for serverless

latest
Source
npmnpm
Version
1.4.1
Version published
Maintainers
1
Created
Source

serverless-yaml

Utility for extending serverless yml based on common components from dependencies.

Usage

Create files that are useful in a "serverless" subdirectory in a dependency or in the top level package with names that point to the path within the serverless object you want to update, like:

  • provider.environment.yml - a map of environment variables to be added to provider.envrionment for common usage
  • Resources.mainRole.Properties.Policies.yml - a list of policies to add to the the roles called mainRole.

Supports yaml encoding (detected by .yml or .yaml extension) and JSON (.json)

Usage

npx @raydeck/serverless-yaml [options]

Update serverless yml based on partials in depedencies

Options

  • -y --yaml-file <path> Serverless yml file to inspect (default: ./serverless.yml)
  • -o --output <path> Output file (default is same as input serverless file)
  • -w --working-path <path> Working path for node project (default: .)

@raydeck/serverless-yaml - v1.4.1

@raydeck/serverless-yaml - v1.4.1

Table of contents

Functions

Functions

apply

apply(source: { [key: string]: any; }, key: string, objOrArray: { [key: string]: any; } | any[]): undefined | { [key: string]: any; }

Parameters:

NameType
source{ [key: string]: any; }
keystring
objOrArray{ [key: string]: any; } | any[]

Returns: undefined | { [key: string]: any; }

Defined in: index.ts:62

inspectDependency

inspectDependency(path: string, keys?: string[]): object

Parameters:

NameTypeDefault value
pathstring-
keysstring[]...

Returns: object

NameType
key?undefined | string
value?undefined | any[] | { [key: string]: any; }

Defined in: index.ts:4

FAQs

Package last updated on 19 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts