Methods
(inner) yaml(text, looseDirectivesopt) → {Object|false}
Parse text as YAML by using js-yaml's FAILSAFE_SCHEMA.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
text | String | Target text. | ||
looseDirectives | boolean | | <optional> | false | By setting |
Returns:
Return parse result, or false
when failed to parse.
- Type:
- Object |
false