li

linkify-instagram

JS library to linkify Instagram captions or comments

Showing:

Popularity

Downloads/wk

21

GitHub Stars

4

Maintenance

Last Commit

5yrs ago

Contributors

3

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

linkify-instagram

npm version Build Status

Click here to try it out in your browser.

Sample Usage

var linkify = require('linkify-instagram');

// Linkifies hashtags
console.log(linkify('Hello #World'));
// Hello <a href="https://www.instagram.com/explore/tags/world">#World</a>

// The hastag template is customizable
console.log(linkify('Hello #World', '<a href="https://www.instagram.com/explore/tags/{hashtag}" target="_blank">#{hashtag}</a>'));
// Hello <a href="https://www.instagram.com/explore/tags/world" target="_blank">#World</a>

// Linkifies usernames
console.log(linkify('Hello @hodor'));
// Hello <a href="https://www.instagram.com/hodor">@hodor</a>

// The template is customizable
console.log(linkify('Hello @hodor', undefined, '<a href="https://www.instagram.com/{username}" target="_blank">@{username}</a>'));
// Hello <a href="https://www.instagram.com/hodor" target="_blank">@hodor</a>

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100