🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

@codefresh-io/yaml-validator

Package Overview
Dependencies
Maintainers
26
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codefresh-io/yaml-validator

An NPM module/CLI for validating the Codefresh YAML

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
327
319.23%
Maintainers
26
Weekly downloads
 
Created
Source

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.

Keywords

codefresh

FAQs

Package last updated on 24 Feb 2026

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