UNPKG
link-view
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
A Node.js package to generate link previews from URLs
link-view
/
index.js
9 lines
(8 loc)
•
286 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
// Import functionality from your source files
const
{ fetchWithFallback } =
require
(
'./src/preview'
);
const
{ generateLinkPreview } =
require
(
'./src/generate'
);
// Export the functions that users will access
module
.
exports
= { fetchWithFallback, generateLinkPreview };