react / wstein / node_modules / jest-cli / node_modules / istanbul / node_modules / js-yaml / examples / sample_document.yml
80684 views---1# Collection Types #############################################################2################################################################################34# http://yaml.org/type/map.html -----------------------------------------------#56map:7# Unordered set of key: value pairs.8Block style: !!map9Clark : Evans10Ingy : döt Net11Oren : Ben-Kiki12Flow style: !!map { Clark: Evans, Ingy: döt Net, Oren: Ben-Kiki }1314# http://yaml.org/type/omap.html ----------------------------------------------#1516omap:17# Explicitly typed ordered map (dictionary).18Bestiary: !!omap19- aardvark: African pig-like ant eater. Ugly.20- anteater: South-American ant eater. Two species.21- anaconda: South-American constrictor snake. Scaly.22# Etc.23# Flow style24Numbers: !!omap [ one: 1, two: 2, three : 3 ]2526# http://yaml.org/type/pairs.html ---------------------------------------------#2728pairs:29# Explicitly typed pairs.30Block tasks: !!pairs31- meeting: with team.32- meeting: with boss.33- break: lunch.34- meeting: with client.35Flow tasks: !!pairs [ meeting: with team, meeting: with boss ]3637# http://yaml.org/type/set.html -----------------------------------------------#3839set:40# Explicitly typed set.41baseball players: !!set42? Mark McGwire43? Sammy Sosa44? Ken Griffey45# Flow style46baseball teams: !!set { Boston Red Sox, Detroit Tigers, New York Yankees }4748# http://yaml.org/type/seq.html -----------------------------------------------#4950seq:51# Ordered sequence of nodes52Block style: !!seq53- Mercury # Rotates - no light/dark sides.54- Venus # Deadliest. Aptly named.55- Earth # Mostly dirt.56- Mars # Seems empty.57- Jupiter # The king.58- Saturn # Pretty.59- Uranus # Where the sun hardly shines.60- Neptune # Boring. No rings.61- Pluto # You call this a planet?62Flow style: !!seq [ Mercury, Venus, Earth, Mars, # Rocks63Jupiter, Saturn, Uranus, Neptune, # Gas64Pluto ] # Overrated656667# Scalar Types #################################################################68################################################################################6970# http://yaml.org/type/binary.html --------------------------------------------#7172binary:73canonical: !!binary "\74R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\75OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\76+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\77AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs="78generic: !!binary |79R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn580OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+81+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC82AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=83description:84The binary value above is a tiny arrow encoded as a gif image.8586# http://yaml.org/type/bool.html ----------------------------------------------#8788bool:89- true90- True91- TRUE92- false93- False94- FALSE9596# http://yaml.org/type/float.html ---------------------------------------------#9798float:99canonical: 6.8523015e+5100exponentioal: 685.230_15e+03101fixed: 685_230.15102sexagesimal: 190:20:30.15103negative infinity: -.inf104not a number: .NaN105106# http://yaml.org/type/int.html -----------------------------------------------#107108int:109canonical: 685230110decimal: +685_230111octal: 02472256112hexadecimal: 0x_0A_74_AE113binary: 0b1010_0111_0100_1010_1110114sexagesimal: 190:20:30115116# http://yaml.org/type/merge.html ---------------------------------------------#117118merge:119- &CENTER { x: 1, y: 2 }120- &LEFT { x: 0, y: 2 }121- &BIG { r: 10 }122- &SMALL { r: 1 }123124# All the following maps are equal:125126- # Explicit keys127x: 1128y: 2129r: 10130label: nothing131132- # Merge one map133<< : *CENTER134r: 10135label: center136137- # Merge multiple maps138<< : [ *CENTER, *BIG ]139label: center/big140141- # Override142<< : [ *BIG, *LEFT, *SMALL ]143x: 1144label: big/left/small145146# http://yaml.org/type/null.html ----------------------------------------------#147148null:149# This mapping has four keys,150# one has a value.151empty:152canonical: ~153english: null154~: null key155# This sequence has five156# entries, two have values.157sparse:158- ~159- 2nd entry160-161- 4th entry162- Null163164# http://yaml.org/type/str.html -----------------------------------------------#165166string: abcd167168# http://yaml.org/type/timestamp.html -----------------------------------------#169170timestamp:171canonical: 2001-12-15T02:59:43.1Z172valid iso8601: 2001-12-14t21:59:43.10-05:00173space separated: 2001-12-14 21:59:43.10 -5174no time zone (Z): 2001-12-15 2:59:43.10175date (00:00:00Z): 2002-12-14176177178# JavaScript Specific Types ####################################################179################################################################################180181# https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp182183regexp:184simple: !!js/regexp foobar185modifiers: !!js/regexp /foobar/mi186187# https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/undefined188189undefined: !!js/undefined ~190191# https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function192193function: !!js/function >194function foobar() {195return 'Wow! JS-YAML Rocks!';196}197198199