jsserializer-yaml

[![NPM version](https://img.shields.io/npm/v/jsserializer-yaml.svg)](https://www.npmjs.org/package/jsserializer-yaml) [![Build Status](https://img.shields.io/travis/jsserializers/yaml/master.svg)](http://travis-ci.org/jsserializers/yaml "Check this projec

Usage no npm install needed!

<script type="module">
  import jsserializerYaml from 'https://cdn.skypack.dev/jsserializer-yaml';
</script>

README

Yaml Serializer

NPM version Build Status Coverage Status

An jsserializer adapter for js-yaml

Example

// import an adapter
import yaml from 'jsserializer-yaml';
// import this library
import serializer from 'jsserializer';
// load in the adapter
let service = serializer(yaml);
// provide the serializer options
let options = {};
// serialize
let obj = service.parse('test: 123', options);
let str = service.stringify(obj, options);

Install

NPM

  • Install: npm install --save jserializer
  • Install: npm install --save jserializer-yaml

API

Property type params Description
extensions getter string[]
parse function (source: string, options: Object)
stringify function (source: Object, options: string)

License

Copyright (c) 2016 https://github.com/orgs/jsserializers/people. All rights reserved.

Licensed under the MIT License. See LICENSE in the project root for license information.