gulp-xml-validator

3.1.0 • Public • Published

gulp-xml-validator

Gulp plugin to validate XML.

License Version Build

Installation

$ npm install gulp-xml-validator --save-dev

Usage

// Gulpfile.mjs
import gulp from 'gulp';
import { xmlValidator } from 'gulp-xml-validator';

gulp.task('lint', done => {
  gulp.src('**/*.xml')
    .pipe(xmlValidator());

  done();
});

⚠️ This plugin is now pure ESM. Read how to migrate your Gulpfile.

Options

options.mimeType

Type: string
Default: "text/xml"

Allows modifying the MIME type passed to DOMParser().parseFromString().

License

This work is licensed under The MIT License.

/gulp-xml-validator/

    Package Sidebar

    Install

    npm i gulp-xml-validator

    Weekly Downloads

    78

    Version

    3.1.0

    License

    MIT

    Unpacked Size

    5.03 kB

    Total Files

    5

    Last publish

    Collaborators

    • idleberg