Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nib/buildkite-inline-image

Package Overview
Dependencies
Maintainers
35
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nib/buildkite-inline-image - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

docs/inline_image_example.png

2

package.json
{
"name": "@nib/buildkite-inline-image",
"version": "0.1.0",
"version": "0.1.1",
"description": "Provides an easy way to output inline images into your buildkite output log from node.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,1 +8,17 @@ # @nib/buildkite-inline-image

Read more at the buildkite docs [here](https://buildkite.com/docs/builds/images-in-log-output).
## Usage
```javascript
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](https://github.com/nib-health-funds/node-buildkite-inline-image/blob/master/docs/inline_image_example.png)
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