travis-fold
Tiny Module for emitting folding syntax for Travis CI output
Last updated 7 years ago by macbre .
BSD · Repository · Original npm · Tarball · package.json
$ cnpm install travis-fold 
SYNC missed versions from official npm registry.

travis-fold

NPM version Build Status

Tiny module for emitting folding syntax for Travis CI output

Example

The following code will add folding for Travis CI output when the module detects a proper environment:

npm install travis-fold
var fold = require('travis-fold'),
	out = [];

// prepare output
out.push('Output begins...');

fold.pushStart(out, 'fold');
out.push('next line');

fold.pushStart(out, 'bar'); // nested
out.push('next line');
out.push('next line');
out.push('next line');
fold.pushEnd(out, 'bar');

out.push('next line');
out.push('next line');
fold.pushEnd(out, 'fold');

// and emit it
console.log(out.join('\n').trim());

In action

Current Tags

  • 0.1.2                                ...           latest (7 years ago)

3 Versions

  • 0.1.2                                ...           7 years ago
  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 20
Last Day 0
Last Week 6
Last Month 21
Dependencies (0)
None
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |