New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gulp-json-to-yaml

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-json-to-yaml

Convert JSON to YAML

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

#gulp-json-to-yaml

A Gulp plugin to convert JSON toYAML using js-yaml.

Install

npm install --save-dev gulp-json-to-yaml

Usage

var jsonToYaml = require('gulp-json-to-yaml');

gulp.src('./src/*.json')
  .pipe(jsonToYaml())
  .pipe(gulp.dest('./dist/'))

gulp.src('./src/*.json')
  .pipe(jsonToYaml({ safe: true}))
  .pipe(gulp.dest('./dist/'))

API

jsonToYaml([options])

options.safe

Type: Boolean

Default: true

Enable or disable support for regexps, functions and undefined.

This flag should always be enabled when working with untrusted data.

When this flag is enabled then [safeDump] method is used, otherwise [dump]. The options object is passed on to js-yaml methods. See js-yaml for details

options.filename

Type String

Default: the path of the file processed

String to be used as a file path in error/warning messages.

License

MIT

Keywords

gulpplugin

FAQs

Package last updated on 25 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts