Skip to content

Provides an easy method for outputting inline images in the buildkite output log.

Notifications You must be signed in to change notification settings

nib-health-funds/node-buildkite-inline-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

@nib/buildkite-inline-image

Provides an easy way to output inline images into your buildkite output log from node.

Handles generating the correct ANSI control characters and buildkite inline image syntax.

Read more at the buildkite docs here.

Usage

var buildkiteInlineImage = require('@nib/buildkite-inline-image');

// Inline image from url
var inlineImage = buildkiteInlineImage.inlineURLImage('https://github.com/nib-health-funds/node-buildkite-inline-image/blob/master/docs/inline_image_example.png');
console.log(inlineImage);

// Or, from an uploaded artifact
var artifactFilePath = '/path/to/artifact.png';
var inlineArtifactImage = buildkiteInlineImage.inlineArtifactImage(artifactFilePath);
console.log(inlineArtifactImage);

The above would result in something similiar to the following output: Usage example output

About

Provides an easy method for outputting inline images in the buildkite output log.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published