@codefresh-io/yaml-validator

    0.30.1 • Public • Published

    Codefresh YAML Validator

    An NPM module/CLI for validating the Codefresh YAML.

    npm version

    Developed in Codefresh.

    Installation

    $ npm install @codefresh-io/yaml-validator -g

    Usage

    Command Line Interface

    # Search for a file named codefresh.yml in the current working directory and validate it
    cyv validate
    
    # Validate the specified codefresh.yml file
    cyv validate --file /path/to/codefresh.yml 

    NPM Module

    const cyv  = require('@codefresh-io/yaml-validator');
    const yaml = require('js-yaml');
    const fs   = require('fs');
    
    const doc = yaml.safeLoad(fs.readFileSync('/path/to/codefresh.yml', 'utf8'));
    cyv(doc);

    License

    Copyright © 2016, Codefresh. Released under the MIT license.


    Install

    npm i @codefresh-io/yaml-validator

    DownloadsWeekly Downloads

    30

    Version

    0.30.1

    License

    MIT

    Unpacked Size

    626 kB

    Total Files

    51

    Last publish

    Collaborators

    • akavalchuk
    • bohdan.pisarenko
    • alinashklyarcodefresh
    • kimaharfi
    • eticodefresh
    • olegcodefresh
    • danielm-codefresh
    • alexey.korolev
    • mikeshl
    • victor-codefresh
    • andrii-codefresh
    • itai-codefresh
    • codefresh
    • ziv-codefresh
    • alex-codefresh
    • aleksandr-codefresh
    • yaroslav-codefresh
    • oren-codefresh
    • denis-codefresh
    • vadim-kharin-codefresh
    • pasha-codefresh
    • roi-codefresh
    • saffi-codefresh
    • idan-codefresh
    • sasha-codefresh
    • daniel-codefresh
    • atgardner
    • daniel.haimov
    • yosi-codefresh
    • dmitry_isaevski