JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 29383
  • Score
    100M100P100Q168339F

Basic node.js utility for converting JSON to YAML and writing formatting YAML files to disk.

Package Exports

  • write-yaml

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (write-yaml) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

write-yaml NPM version

Basic node.js utility for converting JSON to YAML and writing formatting YAML files to disk.

Install

npm

npm i write-yaml --save

API

Example:

var yaml = require('write-yaml');
yaml('config.yml', {foo: {bar: {baz: 'quux'}}});

Results in config.yml with the following contents:

foo:
  bar:
    baz: quux
  • dest {String}: The destination filepath
  • data {String}: Object of data.
  • options {String}: Options to pass to js-yaml

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors. Released under the MIT license


This file was generated by verb-cli on July 18, 2014.