Package Exports
- preview-link-js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (preview-link-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
preview-link-js
NPM module to scrape site data and generate a link preview popup
[Try it out] This package allows you to easily generate link preview popups. Retrieving site data from the browser side is blocked (Read More: CORS), so you must use node-link-scraper with this component.
Install
npm i preview-link-jsImport component and include your scraper link:
import PreviewLink from 'preview-link-js'
...
<PreviewLink scraper="https://node-link-scraper.herokuapp.com/" ...></PreviewLink>Usage
- Include your link via
href, and your display text as innerHTML
<PreviewLink href="https://www.npmjs.com/package/preview-link-js"> preview-link-js </PreviewLink>- You can also edit the
classandstylefields
<PreviewLink class="preview-link-js" style={{ fontWeight:"500" }}> preview-link-js </PreviewLink>License
MIT License