index.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. 'use strict';
  2. var composer = require('./compose/composer.js');
  3. var Document = require('./doc/Document.js');
  4. var Schema = require('./schema/Schema.js');
  5. var errors = require('./errors.js');
  6. var Alias = require('./nodes/Alias.js');
  7. var identity = require('./nodes/identity.js');
  8. var Pair = require('./nodes/Pair.js');
  9. var Scalar = require('./nodes/Scalar.js');
  10. var YAMLMap = require('./nodes/YAMLMap.js');
  11. var YAMLSeq = require('./nodes/YAMLSeq.js');
  12. var cst = require('./parse/cst.js');
  13. var lexer = require('./parse/lexer.js');
  14. var lineCounter = require('./parse/line-counter.js');
  15. var parser = require('./parse/parser.js');
  16. var publicApi = require('./public-api.js');
  17. var visit = require('./visit.js');
  18. exports.Composer = composer.Composer;
  19. exports.Document = Document.Document;
  20. exports.Schema = Schema.Schema;
  21. exports.YAMLError = errors.YAMLError;
  22. exports.YAMLParseError = errors.YAMLParseError;
  23. exports.YAMLWarning = errors.YAMLWarning;
  24. exports.Alias = Alias.Alias;
  25. exports.isAlias = identity.isAlias;
  26. exports.isCollection = identity.isCollection;
  27. exports.isDocument = identity.isDocument;
  28. exports.isMap = identity.isMap;
  29. exports.isNode = identity.isNode;
  30. exports.isPair = identity.isPair;
  31. exports.isScalar = identity.isScalar;
  32. exports.isSeq = identity.isSeq;
  33. exports.Pair = Pair.Pair;
  34. exports.Scalar = Scalar.Scalar;
  35. exports.YAMLMap = YAMLMap.YAMLMap;
  36. exports.YAMLSeq = YAMLSeq.YAMLSeq;
  37. exports.CST = cst;
  38. exports.Lexer = lexer.Lexer;
  39. exports.LineCounter = lineCounter.LineCounter;
  40. exports.Parser = parser.Parser;
  41. exports.parse = publicApi.parse;
  42. exports.parseAllDocuments = publicApi.parseAllDocuments;
  43. exports.parseDocument = publicApi.parseDocument;
  44. exports.stringify = publicApi.stringify;
  45. exports.visit = visit.visit;
  46. exports.visitAsync = visit.visitAsync;