Skip to content

Generate a preview for a link or for a text containing links

Notifications You must be signed in to change notification settings

Auties00/LinkPreview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Link Preview Java

What is link preview

This library generates a preview for a link or for a text containing any number of links. Its functionality is aligned with link-preview-js as I was looking for an alternative to this library for Java but couldn't find any.

How to install

Maven

<dependency>
    <groupId>com.github.auties00</groupId>
    <artifactId>link-preview</artifactId>
    <version>2.4</version>
</dependency>

Gradle

  1. Groovy DSL

    implementation 'com.github.auties00:link-preview:2.4'
  2. Kotlin DSL

    implementation("com.github.auties00:link-preview:2.4")

How to use

  1. Text

    LinkPreview.createPreviews("This is a string containing links: google.com");
  2. URI

    LinkPreview.createPreviews(URI.create("https://google.com/"));

About

Generate a preview for a link or for a text containing links

Topics

Resources

Stars

Watchers

Forks

Languages