tweet-img

Tweet an image

Usage no npm install needed!

<script type="module">
  import tweetImg from 'https://cdn.skypack.dev/tweet-img';
</script>

README

tweet-img

Tweet an image

Installation

npm install tweet-img

Usage

const tweetImg = require('tweet-img');

//const imgData = 'binary imgData';

tweetImg.setup('consumerKey', 'consumerSecret', 'token', 'tokenSecret');
tweetImg.tweet('status message', 'image/jpeg', imgData);

License

MIT © Jeff Noh