UNPKG
osls
Version:
alpha (4.0.0-alpha.1)
beta (4.0.0-beta.2)
latest (4.1.0)
4.1.0
4.0.0
4.0.0-beta.2
4.0.0-beta.1
4.0.0-beta.0
4.0.0-alpha.1
4.0.0-alpha.0
3.77.0
3.76.1
3.76.0
3.75.1
3.75.0
3.74.0
3.73.1
3.73.0
3.72.0
3.71.0
3.70.0
3.69.0
3.68.0
3.67.0
3.66.0
3.65.0
3.63.2
3.62.1
3.62.0
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(
'.'
)}
`
; };