aboutsummaryrefslogtreecommitdiff
path: root/node_modules/js-yaml/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/js-yaml/README.md')
-rw-r--r--node_modules/js-yaml/README.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/node_modules/js-yaml/README.md b/node_modules/js-yaml/README.md
index c6338facc..170c16484 100644
--- a/node_modules/js-yaml/README.md
+++ b/node_modules/js-yaml/README.md
@@ -142,10 +142,10 @@ require('js-yaml').load(untrusted_code) + ''
```
-### safeLoadAll (string, iterator [ , options ])
+### safeLoadAll (string [, iterator] [, options ])
-Same as `safeLoad()`, but understands multi-document sources and applies
-`iterator` to each document.
+Same as `safeLoad()`, but understands multi-document sources. Applies
+`iterator` to each document if specified, or returns aray of documents.
``` javascript
var yaml = require('js-yaml');
@@ -156,7 +156,7 @@ yaml.safeLoadAll(data, function (doc) {
```
-### loadAll (string, iterator [ , options ])
+### loadAll (string [, iterator] [ , options ])
Same as `safeLoadAll()` but uses `DEFAULT_FULL_SCHEMA` by default.
@@ -182,6 +182,7 @@ options:
- `noRefs` _(default: `false`)_ - if `true`, don't convert duplicate objects into references
- `noCompatMode` _(default: `false`)_ - if `true` don't try to be compatible with older
yaml versions. Currently: don't quote "yes", "no" and so on, as required for YAML 1.1
+- `condenseFlow` _(default: `false`)_ - if `true` flow sequences will be condensed, omitting the space between `key: value` or `a, b`. Eg. `'[a,b]'` or `{a:{b:c}}`. Can be useful when using yaml for pretty URL query params as spaces are %-encoded.
The following table show availlable styles (e.g. "canonical",
"binary"...) available for each tag (.e.g. !!null, !!int ...). Yaml