1.0.1 • Published 8 years ago
farsight v1.0.1
farsight
Ever paste a URL into a comment field and see a preview of that website? This library gives you that feature.
This library works on any platform that can make HTTP requests.
Given a URI it returns information.
Works for these websites:
- amazon product pages
- wikipedia pages
- wikipedia users
- google searches
- facebook pages
- twitter tweets
- twitter moments
- images
- videos
- github repositories
- github users
- github organizations
- github issues
- github pull requests
- github wiki pages
- youtube video pages
- youtube user pages
- stackoverflow question
- stackoverflow user
using
import {prop} from "ramda"
import farsight from "farsight"
farsight({uri: "https://example.com"})
.then(prop("title"))
.then(console.log) // "Example Website"
1.0.1
8 years ago