Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Usage

import * as scrapboxUrlCustomizer from "https://raw.githubusercontent.com/takker99/scrapbox-url-customizer/0.4.3/mod.ts";

§Variables

convert

URLもしくはURLを0個以上含んだテキストを変換する

convertGyazoURL

GyazoのURLを画像にする

convertScrapboxURL

scrapboxのURLを内部リンク記法に変える

convertURL

URLを変換する

escapeForEmbed

scrapboxの記法と干渉する文字を取り除く

expandShortURL

各種の短縮URLを展開する

formatTweet

tweetを展開する

formatURL

URL先のデータを使って外部リンク記法にする関数を作る

formatWikipedia

wikipediaのリンクを変換する

redirectGoogleSearch

Googleの検索結果URLをリダイレクト先URLにする

redirectWikiwand

wikiwandをwikipediaのURLにする

shortenAmazonURL

AmazonのURLを短くする

stringify

Converts a processed tweet or a tweet via /api/embed-text/twitter into a formatted string.

uploadMedia

Uploads media to Gyazo or scrapbox.io and returns the URL of the uploaded media. If the upload fails, it returns the original media URL.

§Interfaces

Media
ProcessedTweet

加工したTweet data

Tweet

The response of https://cdn.syndication.twimg.com/tweet-result?id=:tweetId

TweetInfo

the response type of /api/embed-text/twitter

TweetViaProxy

§Type Aliases

Middleware

URL変換用関数

TweetFormatter

tweetをscrapboxに書き込む際の変換format