UNPKG
js-yaml
Version:
latest (4.1.0)
4.1.0
4.0.0
3.14.1
3.14.0
3.13.1
3.13.0
3.12.2
3.12.1
3.12.0
3.11.0
3.10.0
3.9.1
3.9.0
3.8.4
3.8.3
3.8.2
3.8.1
3.8.0
3.7.0
3.6.1
3.6.0
3.5.5
3.5.4
3.5.3
3.5.2
3.5.1
3.5.0
3.4.6
3.4.5
3.4.4
3.4.3
3.4.2
3.4.1
3.4.0
3.3.1
3.3.0
3.2.7
3.2.6
3.2.5
3.2.4
3.2.3
3.2.2
3.2.1
3.1.0
3.0.2
3.0.1
3.0.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.0.3
1.0.2
1.0.1
1.0.0
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.2
0.2.1
0.2.0
YAML 1.2 parser and serializer
github.com/nodeca/js-yaml
nodeca/js-yaml
js-yaml
/
lib
/
schema
/
failsafe.js
18 lines
(11 loc)
•
278 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Standard YAML's Failsafe schema.
// http://www.yaml.org/spec/1.2/spec.html#id2802346
'use strict'
;
var
Schema
=
require
(
'../schema'
);
module
.
exports
=
new
Schema
({
explicit
: [
require
(
'../type/str'
),
require
(
'../type/seq'
),
require
(
'../type/map'
) ] });