UNPKG
@zkochan/js-yaml
Version:
latest (0.0.10)
next (0.0.4)
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
YAML 1.2 parser and serializer
github.com/nodeca/js-yaml
nodeca/js-yaml
@zkochan/js-yaml
/
lib
/
type
/
str.js
9 lines
(6 loc)
•
189 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
'use strict'
;
var
Type
=
require
(
'../type'
);
module
.
exports
=
new
Type
(
'tag:yaml.org,2002:str'
, {
kind
:
'scalar'
,
construct
:
function
(
data
) {
return
data !==
null
? data :
''
; } });