-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhandler.js
More file actions
22 lines (20 loc) · 875 Bytes
/
handler.js
File metadata and controls
22 lines (20 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
'use strict';
const loremIpsum = require("lorem-ipsum")
module.exports.ipsum = (event, context, callback) => {
const response = {
statusCode: 200,
body: loremIpsum(
{
count: 6 // Number of words, sentences, or paragraphs to generate.
, units: 'paragraphs' // Generate words, sentences, or paragraphs.
, sentenceLowerBound: 10 // Minimum words per sentence.
, sentenceUpperBound: 20 // Maximum words per sentence.
, paragraphLowerBound: 5 // Minimum sentences per paragraph.
, paragraphUpperBound: 10 // Maximum sentences per paragraph.
, format: 'plain' // Plain text or html
, suffix: ""
}
),
};
callback(null, response);
};