UNPKG
sharec-schema
Version:
latest (3.1.0)
3.1.0
3.0.0
3.0.0-alpha.0
2.10.7
2.10.5
2.10.4
2.10.3
2.10.2
2.10.1
2.10.0
2.9.0
2.8.1
2.8.0
2.7.1
Utilities for configuration files merge
sharec.js.org
lamartire/sharec
sharec-schema
/
lib
/
pipes
/
toJson.js
12 lines
(9 loc)
•
230 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
// @ts-check
const
{ toJSON } =
require
(
'../parsers/json'
)
/** * Transforms Map to JSON-string *
@param
{
Map<string, any>
}
input
*
@returns
{
string
} */
const
toJsonPipe
= (
input
) =>
toJSON
(input)
module
.
exports
= toJsonPipe