js-link-previewer

1.0.6 • Public • Published

Link Previwer

Simple, lightweight pure JavaScript component that adds a link preview functionality.

Demo

https://jagermesh.github.io/js-link-previewer/

Usage:

  1. Include the script:
<script type="text/javascript" src="link-previewer.js"></script>
  1. Create Link Previwer instance
const linkPreviewer = new LinkPreviewer();
  1. Attach to selector
linkPreviewer.attach('a');

That's all.

Have fun. Send PR if you find any glitches or want to make improvements.

:)

Readme

Keywords

Package Sidebar

Install

npm i js-link-previewer

Weekly Downloads

343

Version

1.0.6

License

MIT

Unpacked Size

140 kB

Total Files

7

Last publish

Collaborators

  • jagermesh