farsight

1.0.1 • Public • Published

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

Version Tests Stability Dependencies

using

import {prop} from "ramda"
import farsight from "farsight"
 
farsight({uri: "https://example.com"})
  .then(prop("title"))
  .then(console.log) // "Example Website"

Package Sidebar

Install

npm i farsight

Weekly Downloads

3

Version

1.0.1

License

ISC

Last publish

Collaborators

  • krainboltgreene