Skip to content

changey/react-native-page-previewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-page-previewer

Getting started

$ npm install react-native-page-previewer --save

Usage

import preview from 'react-native-page-previewer';

preview({url:"http://www.google.com"}, function(err, data) {
    if(!err) {
        console.log(data);
    }
});

sample return

{ url: 'https://www.google.com',
  loadFailed: false,
  title: 'Google',
  description: 'Search the world\'s information, including webpages, images, videos and more. Google has many special features to help you find exactly what you\'re looking for.',
  contentType: 'text/html',
  mediaType: 'website',
  images: [ 'https://www.google.com/images/branding/googlelogo/1x/googlelogo_white_background_color_272x92dp.png' ],
  videos: undefined,
  audios: undefined }

References

  1. https://github.com/myspace/page-previewer
  2. https://github.com/oyyd/cheerio-without-node-native

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •