JSPM

@blackamda/telegram-image-url

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 936
  • Score
    100M100P100Q115915F
  • License MIT

Upload an image and convert into telegram link

Package Exports

  • @blackamda/telegram-image-url
  • @blackamda/telegram-image-url/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@blackamda/telegram-image-url) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Simple image to url converter


Installation

npm i @blackamda/telegram-image-url

Example

let { img2url } = require('@blackamda/telegram-image-url')

const path = './1234.jpg'

img2url(path).then(url => {
    console.log(url); //=> https://telegra.ph/file/a45e08f53773b1a6a16af.jpg
})