util.js 1008 B

12345678910111213141516171819202122232425262728
  1. 'use strict';
  2. var createNode = require('./doc/createNode.js');
  3. var log = require('./log.js');
  4. var Pair = require('./nodes/Pair.js');
  5. var YAMLMap = require('./nodes/YAMLMap.js');
  6. var toJS = require('./nodes/toJS.js');
  7. var map = require('./schema/common/map.js');
  8. var seq = require('./schema/common/seq.js');
  9. var string = require('./schema/common/string.js');
  10. var foldFlowLines = require('./stringify/foldFlowLines.js');
  11. var stringifyNumber = require('./stringify/stringifyNumber.js');
  12. var stringifyString = require('./stringify/stringifyString.js');
  13. exports.createNode = createNode.createNode;
  14. exports.debug = log.debug;
  15. exports.warn = log.warn;
  16. exports.createPair = Pair.createPair;
  17. exports.findPair = YAMLMap.findPair;
  18. exports.toJS = toJS.toJS;
  19. exports.mapTag = map.map;
  20. exports.seqTag = seq.seq;
  21. exports.stringTag = string.string;
  22. exports.foldFlowLines = foldFlowLines.foldFlowLines;
  23. exports.stringifyNumber = stringifyNumber.stringifyNumber;
  24. exports.stringifyString = stringifyString.stringifyString;