js-link-previewer
v1.0.5
Published
Link Previewer
Downloads
1,002
Readme
Link Previwer
Simple, lightweight pure JavaScript component that adds a link preview functionality.
Demo
https://jagermesh.github.io/js-link-previewer/
Usage:
- Include the script:
<script type="text/javascript" src="link-previewer.js"></script>
- Create Link Previwer instance
const linkPreviewer = new LinkPreviewer();
- Attach to selector
linkPreviewer.attach('a');
That's all.
Have fun. Send PR if you find any glitches or want to make improvements.
:)