1.0.0 • Published 16 days ago

@povsicoenpm/deserunt-voluptatem-omnis v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
16 days ago

yaml-ast-parser

Build Status

This is a fork of JS-YAML which supports parsing of YAML into AST.

In additional to parsing YAML to AST, it has following features:

  • restoration after the errors and reporting errors as a part of AST nodes.
  • built-in support for !include tag used in RAML

Usage

The type information below is relevant when using TypeScript, if using from JavaScript only the field/method information is relevant.

load method can be used to load the tree and returns a YAMLNode.

YAMLNode

YAMLNode class is an ancestor for all node kinds. It's kind field determine node kind, one of Kind enum:

  • SCALAR, MAPPING, MAP, SEQ, ANCHOR_REF or INCLUDE_REF.

After node kind is determined, it can be cast to one of the YAMLNode descendants types:

  • YAMLScalar, YAMLMapping, YamlMap, YAMLSequence or YAMLAnchorReference.
classimportant members
YAMLNodestartPosition and endPosition provide node range.
YAMLScalarstring value field
YAMLMappingYAMLScalar key and YAMLNode value fields
YAMLSequenceYAMLNode[] items field
YamlMapYAMLMapping[] mappings field
YAMLAnchorReferencestring referencesAnchor and YAMLNode value

YAMLScalar

Scalars are one of the three main node types defined by YAML and are effectively leaf nodes.

There are many factors that can influence the type of datum represent in scalar node (context, schema, tag, etc.).

To help inspection of a YAMLScalar to determine its datatype when a document uses the Core Schema, you can pass the YAMLScalar to the determineScalarType function. It will return an enum value indicating null, bool, int, float, or string.

Once you know the type, there are also some helper functions to help read the value by passing them the string, value: parseYamlBoolean, parseYamlFloat, and parseYamlInteger.

listenersECMAScript 3groupauthenticationstyled-componentslockfilesignalsArrayieprunefastsetPrototypeOfchromiumECMAScript 2022browserslistremovebyteOffsetWebSocketsperformancesearchfetchargumentsregexpromisesbrowserdeepclonexdgpropsigintcallbindzeroa11yPromisesortedreplayelectronpreserve-symlinksformi18nbindstringifiershimquerystringdateshrinkwrappathdeep-clonewhichcircularsignalString.prototype.trimArray.prototype.includesdescriptionCSSStyleDeclarationdeepcopyajaxpropertieseslintconfiginstallenvYAMLescapetrimEndstablefast-clonesuperagentlimitedaccessorglobalssetImmediateproxyfixed-widthserializerglobesfast-deep-copytslibenvironmentscompile lessl10nhttpscall-boundcommandqsformattingiteratekarmadefaultcore-jscolumnsratelimitcreatexhridlestreams2ES2015reusemkdirsetES3regularconcurrencyeveryutil.inspectlanguagetestpersistentjapanesedom-testing-libraryhasfluxperformantreducebyteLengthfunctionaldifferrorspawnIteratorbundlerAsyncIteratorworkertoolsES2017sharedarraybufferfast-copyserializationlazywebcss nestingString.prototype.matchAllpyyamlcoreless cssvaluefromwordwrapimportexportnumbertoolkitgetStyleSheetpasswordbluebirdrmdirwrapirquninstallxtermutiliterationinputcharacterstrimStartdeletecollection.es6weaksetstylesheetoperating-systemcollectionhooksRxJSes5bootstrap cssemitdefinestylesschemebuffersobjecttypedECMAScript 2015columnArray.prototype.flattesterReactiveXmatchespromiseECMAScript 7TypeScriptcrypts3telephoneenumerablesameValueZerosesestreeSymbol.toStringTagswfgradients css3restfast-deep-clonevarsopensRegExp#flagsmrurangeerrorArray.prototype.findLaststylefunctionequalityes8gettertypedarraysequencerecursiveRFC-6455Uint16ArrayflatinternalhasOwnsymbolansichannelcss lessfindLastfindupsetterfschildfigletcorselasticacheObservablesfind-upES2022spinnertimesidesortslotgetoptthroates2015rateboundmocha_.extendlengthpositiverm -frloadbalancingpackageopenjsxjsdomcomputed-typesfulljshintrandomnegativejwtwebsitenamesinferenceshebangcheckdefinePropertyencryptionterminalmonorepoframeworkpushforEachomitmime-dbenvironmenttypanionfindArray.prototype.flattenWebSocketfunctionsrfc4122validatemovematchFloat32Arrayreact-hooksECMAScript 2019es-abstractbatchconsumeduplexoptiones2016Object.entriessymlinkes6privatebundlingtapwidthformatWeakMaptrimRightObject.fromEntriesECMAScript 2023filequoteimportArray.prototype.containsio-tsStreamsmodulestakejoizodECMAScript 5uuidgdprinternal slotreadablestreamwindowsdynamodbshammake dirjavascriptpluginECMAScript 2021argvexpressionpredictableredux-toolkitspeedgetPrototypeOfxdg-openpatchcoerciblees-shimswatchingamazonlogginglintrm -rftoSortedhttpUnderscoredeepsliceclimulti-packageBigInt64ArrayeslinttestingjsendpointdebugformshandlershasOwnPropertycommand-lineutilitynpmnodejsdeterministicObjectes2018structuredClonedatawalkRegExp.prototype.flagssomeautoprefixeroutputjsonpathcacheArray.prototype.findLastIndexTypeBoxrouterObject.getPrototypeOfpackagescommanderparsemacoses2017descriptorshookformsymlinksregexpqueryECMAScript 6ES2020termhardlinksthrottleES2023error-handlingarrayless mixinsstyleguideajvsyntaxiamtrimBigUint64Arraystatelesstddtapedependency managerworkspace:*package.jsonkeylessconcatMapPusharttoArraytyped arrayfile systemcode pointsurlhigher-orderpostcssapilastarktypeobjwatchwritabletypeindicatorUint32Arraydomfseventsyamlpostcss-pluginregular expressionexpressfastifycloudsearchequaldotenvtypedarrayspropertyschemaReflect.getPrototypeOfefficientapptoobject$.extendSetECMAScript 2017findLastIndexurlsconsolebootstrap lessArray.prototype.filterObject.defineProperty@@toStringTaggroupBydatastructureECMAScript 2020ebscomparecloudtrailmetadatafiltertc39launchoffsetdirectoryec2ecmascriptlookcloudformationvestoptimist.envreal-time0flatMapentriesObject.assignsnsrestfulwgetwarningdataviewrdsimmutablelook-upcloudwatchdropdescriptorisConcatSpreadablemapreducetypesreactsharedwordbreakglacierjsdiffqueueMicrotaskdataViewchaiassertiononceassignmoduleclassesrapidhelpersawesomesauceES5viewwaitbddtextawsextrajQuerynested csspolyfillES8argseventDispatcherarraysairbnbprotobufJSONcompilerminimalstreamWeakSetwafbreakvalidationeslint-pluginstoragegatewayrequireexecutablevariablescolourwatchFilebeanstalkautoscalingObject.keysform-validationUint8ClampedArrayparsinggetintrinsicstartjasmineArrayBufferweakmapbusyReactiveExtensionsInt32ArrayexeeslintpluginObject.valuessinatrareact-testing-librarycopytsreducerpackage managerfolderphoneless.jsinbrowserlistttycallless compilercloudfrontsymbolstouchiteratoroptimizerESES2021nativeelm[[Prototype]]prettyfull-widthjsonfastcopycodesgetOwnPropertyDescriptorsettingsinstallerintrinsicchineseemojiidspinnersagentbcryptcall-bindemrFloat64ArraytraversetypeofinvariantSymbolcurlmapelbworkflowArray.prototype.flatMapeventEmitterconfigurableURLSearchParamsrequestidentifiersinterruptsmatchAllopenerassertsFunction.prototype.namepnpm9classnamevalidArrayBuffer.prototype.slicedebuggerinspecteditorredact__proto__east-asian-widthObject.islivelinuxincludesstarterasserthas-ownloadingmkdirsnodeprotoES6Int8Arrayspecmiddlewareglobalbuffersuperstructcallbackprototypemakeconnectcolordependenciesexit-codepreprocessorcharactertasktoStringTagprotocol-buffersvisualmixinsstdlibregular expressionsunicodestatusmimeresolveeventsvpccssprogresses7limitnameargparsehotsafequeuefastclonestylingreadRxHyBiponyfillpicomatchES2019route53cloneimmerflattendeep-copyMapInt16Arrayhashmergecmddayjsprivate dataconcatarraybufferflagclassnamesjestcjkES7parentparentsnegative zeroTypedArraysyntaxerrortypesafeextensionsigtermuplesscssasyncsqsfpsrobustcontains-0enderUint8ArrayESnextreadablewalkingavaconfigreduxes-shim APIargumentECMAScript 2016URLlrukeyslibphonenumberArrayBuffer#slicereact-hook-formtostringtagshellaccessibilitychromemkdirpastrmgradients cssStreamauthpipeextendwritevaluesstate
1.0.0

16 days ago