1.0.0 • Published 8 years ago
link-preview v1.0.0
linkPreview
this is a npm package used for extract appropriate title,des,content and imgs from a url,just like what you see when you post a link on google+. It can deal with webpages with variable charset,compressed in deflate and gzip format and relocation url.The result you get maybe not what you want because of the complexity of a webpage,especially the images you want.
note:this tool will generate a temp.txt whoes content is the url given.
here is the install
npm linkPreview
here is the usage
var linkPreviewHelper=require('linkPreview');
linkPreviewHelper.parse(url).then(succallcallback,errorcallback);
1.0.0
8 years ago