1.0.5 • Published 4 years ago

serverless-plugin-catdir v1.0.5

Weekly downloads
8
License
MIT
Repository
-
Last release
4 years ago

serverless-plugin-catdir

Allows serverless stacks to import text from a file or multiple files which will import in a string format. This plugin solves a problem when importing files with new lines that it maintains formatting. This plugin also allows the user to remove

Use case

When importing step function json, this function allows you to have a single or multiple files which contains step function tasks, and retrieve their values with formatting for inclusion in a serverless deployment.

Implementing

Install the plugin into the directory your serverless.yml is located

npm install serverless-plugin-catdir

Add the decouple plugin to your plugins, and add a custom variable to turn it on

plugins:
    - serverless-plugin-catdir

custom:
    fileContent: "#catdir(./path/to/file.txt)"
    fileMaskContent: "#catdir(./path/to/*.txt)"
    fileWithoutFirstAndLastLine: "#catdir(./path/to/*.txt,true)"
1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago