Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 563 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 563 Bytes

extern-js-yamljs

  • Target : Javascript (NodeJS + Browser)
  • Library : yamljs
  • Last tested version : 0.2.6
  • Available on : Github - NPM

Usage

import js.yamljs.*;

class Main
{
  static function main()
  {
    // parse YAML string 
    var nativeObject = Yaml.parse(yamlString);
 
    // Generate YAML 
    var yamlString = Yaml.stringify(nativeObject, 4);
 
    // Load yaml file using YAML.load 
    nativeObject = Yaml.load('myfile.yml');
  }
}