UNPKG
osls
Version:
latest (3.61.1)
3.61.1
3.61.0
3.60.0
3.59.3
3.59.2
3.59.1
3.59.0
3.58.1
3.58.0
3.57.0
3.56.0
3.55.0
3.54.1
3.54.0
3.53.0
3.52.2
3.52.1
3.52.0
3.51.2
3.51.1
3.51.0
3.50.0
3.49.0
3.48.0
3.47.0
3.46.0
3.45.0
3.44.2
3.44.1
3.43.1
3.43.0
3.42.0
3.41.0
3.40.2
Open-source alternative to Serverless Framework
github.com/oss-serverless/serverless
osls
/
lib
/
configuration
/
variables
/
humanize-property-path-keys.js
10 lines
(7 loc)
•
286 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(
'.'
)}
`
; };