onebox
onebox with node
Onebox is a library for turning media URLs into simple HTML previews of the resource.
Installation
npm install onebox --save
Usage
var fs = ;var path = ;var mustache = ;var onebox = ;var preview =;var link = 'http://github.com/wangzuo/onebox/issues/1';;
Development preview server
npm start
Link support
- amazon
- audio
- douban
- github_blob
- github_commit
- githubgist
- githubissue
- githubpullrequest
- google_calendar
- googledocs (spreadsheets|document|forms|presentation)
- google_maps
- googleplayapp
- image
- pubmed
- soundcloud
- stackexchange (stackoverflow)
- oembed
- twitterstatus
- video
- whitelisted_generic
- wikipedia
- spotifytrack
- spotifyalbum
- youku
- youtube
- music163playlist
- music163album
- music163song
- 404 error
- timeout error
- open graph protocol
- normalize link
- time format
- string format
- render as media object