Skip to content

patilvinay/yaml-syntax

Repository files navigation

NPM version Build Status Dependency Status Coverage percentage License semantic-release

yaml-syntax

check the yaml file for any possible syntax error

getting started

var fs = require('fs');
var check = require('yaml-syntax');

var file = __dirname + '/test.yaml';
var src = fs.readFileSync(file);

var err = check(src, file);
if (err) {
    console.error(err);
    console.error(Array(76).join('-'));
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published