Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 803 Bytes

.verb.md

File metadata and controls

42 lines (28 loc) · 803 Bytes

See release notes.

Usage

const gulp = require('gulp');
const format = require('{%= name %}');

gulp.task('format', () => {
  return gulp.src('README.md')
    .pipe(format())
    .pipe(gulp.dest('.'));
});

Options

newline

gulp-format-md ensures that files have a trailing newline by default. Pass false to disable this and strip trailing whitespace.

type: boolean

default: true

example

gulp.task('format-md', () => {
  return gulp.src('readme.md')
    .pipe(format({ newline: false }))
    .pipe(gulp.dest('.'));
});

Release Notes

v2.0

Removed

CLI was removed in v2.0. We will be releasing a standalone CLI soon, please watch the project or follow @jonschlinkert for updates.