blob: a064f7b31e54c97bedc87c34c8424cb7c4255a86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { stringifyString } from '../../stringify/stringifyString.js';
const string = {
identify: value => typeof value === 'string',
default: true,
tag: 'tag:yaml.org,2002:str',
resolve: str => str,
stringify(item, ctx, onComment, onChompKeep) {
ctx = Object.assign({ actualString: true }, ctx);
return stringifyString(item, ctx, onComment, onChompKeep);
}
};
export { string };
|