JSPM

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

Basic node.js utility for writing formatted YAML files from JSON.

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 writing formatted YAML files from JSON.

Install

npm

npm i write-yaml --save

API

sync

Convert JSON to YAML and Write a YAML file to disk asynchronously.

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
  • filepath {String}:
  • return {Object}

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.