Socket
Socket
Sign inDemoInstall

@nib/buildkite-inline-image

Package Overview
Dependencies
0
Maintainers
35
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nib/buildkite-inline-image

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


Version published
Weekly downloads
2.4K
increased by122.66%
Maintainers
35
Install size
113 kB
Created
Weekly downloads
 

Readme

Source

@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

Keywords

FAQs

Last updated on 27 Jan 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc