@nib/buildkite-inline-image

0.1.1 • Public • Published

@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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @nib/buildkite-inline-image

      Weekly Downloads

      1,661

      Version

      0.1.1

      License

      ISC

      Last publish

      Collaborators

      • eina-chan
      • digio-shanefitzgerald
      • darcymerrickmudbath
      • deepaaravindan_nib
      • yparulkar-nib
      • saranya-nibtravel
      • aktb-nib
      • trentontws
      • izabelawojciak
      • krut
      • eddylj
      • georgia-batson
      • adamgonlag
      • paul-neville-thompson
      • terencesunendava
      • nathanpiper-nib
      • sylvia.zh
      • sophiebclewis
      • dluong.mud
      • ryanforteendava
      • jaredgold
      • dylanfu
      • karlb_nz
      • steve.goodwin.mudbath
      • neon-inkblast
      • paritoshdhebar_endava
      • bencoll
      • amelialuwia
      • lareinamarieyu
      • cooldesignluke
      • julie.li
      • connorpmcbride
      • tarantoj
      • samreedy
      • caleb.faith
      • shirleyshao
      • kieranjogrady
      • samjwillis-nib
      • nathan.ford-nib
      • sumo_nib
      • domcorso-nib
      • jmatas
      • kentran.mudbath
      • ki-nibnz
      • mthamyeeznib
      • swaff-y
      • humanforklift
      • nathananstess.nib
      • aidan.mccormack.nib
      • matthewchambers-nib
      • lewis.kwong.nib
      • parisa.heyd
      • delucasnz
      • stephen.wong
      • thomasc42
      • sameer-e-digio
      • fiona.wang
      • elias.tran.nib
      • pkernaghan
      • ruilunli
      • nadeeth.nib
      • alankirknibtravel
      • mgw114
      • gaurijadhav
      • sannat-digar
      • bradley.williams
      • sheren
      • ash-tulett-nib
      • damodaran
      • joshgermon-nib
      • joshua.coleiro
      • juliexxvi
      • t.mazzoni
      • breynol5
      • zoechainib
      • john.hartmann.nib
      • darren.inwood.nib
      • johnpaulvaughan
      • meltemcicekbuzcu
      • georgia.batson
      • joshgerlach
      • blakehattingh
      • chris.close.nib
      • phanipericherla-nib
      • dsmitham
      • buxtonk
      • c.rhind
      • vinualwisnib
      • tristancampbellmb
      • danieltran-nib
      • dguilbert
      • tejaswikota
      • tjodzio-nib
      • mitchellharrold
      • denniskhormb
      • billthomas-nib
      • harshahr1994
      • dimi7ri
      • jkumaranc
      • akash.prakash
      • henry.shen
      • jairmud
      • vivien_clifford_nib
      • jakeherington-nib
      • pallavi.barna
      • raghu9405
      • callumwk-mudbath
      • bendharvey
      • rahulrathodmudbath
      • khtat
      • s.hossain
      • brad.turner
      • scottwalkerau
      • phillip.eade
      • johanjarvi
      • msikkema
      • alunarzewski
      • jnwest
      • wdvalena
      • blake_spiers
      • sbista
      • mleontieff
      • envoy49
      • amy.tait.nib
      • aschofield-nib
      • ian.darroch
      • syed.husain
      • nib-admin
      • lauriejones
      • cmayson
      • ken-ky-wong
      • stribs
      • wng-services
      • eastwood
      • mattbourke
      • narcher
      • tmcclenahan
      • gui99
      • nib-nz-build
      • chloewicks
      • tgoldthorpe-nib
      • nib-build-agent
      • hlee
      • jackmennienib
      • dariasu
      • bennettsolnet
      • airfan
      • samdiamond
      • rovacsek
      • roland.molina
      • gnguyennib
      • tom.mok
      • gl0206
      • tbrown-nib
      • vicvinegar
      • oshan.kottege
      • xiaoxinghu
      • rbowen006
      • seanw.nib
      • anishmat27
      • sean0x42
      • zander-mudbath
      • sbeliak-nib
      • c.lassen
      • aglazyrin-mb
      • dmitrymatveev
      • vaishalibhakhar
      • alejop-mudbath
      • r3gm1
      • maraza1721
      • d-martin-nib
      • apnib
      • siyengar94