Socket
Socket
Sign inDemoInstall

danger-plugin-dangerfile-builder

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

danger-plugin-dangerfile-builder

Dangerfile Builder is a Danger JS plugin containing a set of common validations and utilities, build to make it easy to start using Danger JS.


Version published
Maintainers
1
Created
Source

danger-plugin-dangerfile-builder

Dangerfile Builder is a Danger JS plugin containing a set of common validations and utilities, build to make it easy to start using Danger JS.

Build Status SonarCloud Coverage npm version Greenkeeper badge

Installation

npm install danger-plugin-dangerfile-builder --save-dev

Usage

Edit your dangerfile.js to import the required validations and utilities, and buil the contents using those:

const { warn } = require('danger');
const {
  jsLockfile,
  commonValidJson,
  inCommitGrep,
} require('danger-plugin-dangerfile-builder');

jsLockfile();

commonValidJson();

if (inCommitGrep(/.+\.log$/)) {
  warn('Do not commit log files');
}

Validations and utilities

Find here the documentation of all validations and utilities provided by Dangerfile Builder:

Changelog

See the release history in CHANGELOG.md.

Contributing

To contribute please see CONTRIBUTING.md.

Keywords

FAQs

Package last updated on 21 Oct 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc