UNPKG
sls3-legacy
Version:
latest (3.42.1)
3.42.1
3.42.0
3.41.1
SLS3 Legacy - A fork of Serverless Framework v3
github.com/deel77/sls3-legacy
deel77/sls3-legacy
sls3-legacy
/
lib
/
configuration
/
variables
/
humanize-property-path-keys.js
10 lines
(7 loc)
•
295 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
// Stringify property keys array for user facing message
'use strict'
;
module
.
exports
=
(
propertyPathKeys
) =>
{
const
rootProperty = propertyPathKeys[
0
];
if
(propertyPathKeys.
length
===
1
)
return
rootProperty;
return
`
${rootProperty}
.
${propertyPathKeys.slice(
1
).join(
'.'
)}
`
; };