Skip to content

mk-pmb/js-yaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-yaml

JS-YAML is a YAML parser for JavaScript. Originally ported from PyYAML.

Features

  • a complete YAML 1.1 parser.
  • unicode support limited to UTF-8 input and \u escape sequences.
  • support for all types from the YAML types repository.
  • relatively sensible error messages.

Tag Scheme

The list of standard YAML tags and corresponding JavaScipt types.

!!null ''                   # null
!!bool 'yes'                # bool
!!int '3...'                # number
!!float '3.14...'           # number
!!binary '...base64...'     # buffer
!!timestamp 'YYYY-...'      # date
!!omap [ ... ]              # array of key-value pairs
!!pairs [ ... ]             # array or array pairs
!!set { ... }               # array of objects with given keys and null values
!!str '...'                 # string
!!seq [ ... ]               # array
!!map { ... }               # object

The list of JavaScript specific YAML tags will be availble soon (not implemented yet) and will include at least RegExp, Undefined and Infinity.

License

View the LICENSE file.

About

JavaScript YAML parser and dumper. Very fast.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 94.1%
  • HTML 3.6%
  • Makefile 1.4%
  • Other 0.9%