xyml

0.2.0 • Public • Published

XYML

XYML is a simple markup language based off of XML and YAML. It features the simplicity of YAML with the extensibility of XML.

To learn more about XYML, visit the wiki.

Notes

For the most part, XYML is most closely related to YAML. The few major differences that need to be noted are:

Values are JSON

All values are parsed as if they were JSON. So, for example "value" is a string, and 0 is a number. This means that "0" is a string.

Attributes have +

Attributes of values are noted by there prepended +. Attributes can be added to any value, simple (string, number, boolean) or complex (objects).

Take for example the complex value parent with child foo and attribute baz:

parent:
	foo: "bar"
	+ baz: "fiz"

and the simple value parent with attribute bar:

parent: "foo"
	+ bar: "baz"

Arrays are multiple keys

Instead of creating an array using -, arrays are created by using multiple of the same keys.

For example, the YAML

array:
  - bar
  - foo

would become

array:
	item: "foo"
	item: "bar"

Indention with tabs

All indention is done with a single tab instead of two spaces.

Readme

Keywords

Package Sidebar

Install

npm i xyml

Weekly Downloads

4

Version

0.2.0

License

GPL-3.0-or-later

Unpacked Size

42.6 kB

Total Files

10

Last publish

Collaborators

  • andrewlemons