This is a client library for the Demo API of FilePeviews.io service. A lot more to come very soon.
bower install filepreviews
We have a working demo on jsBin.
<script src="//dufozrddxzwdn.cloudfront.net/latest/filepreviews.min.js"></script>
<script src="//dufozrddxzwdn.cloudfront.net/latest/filepreviews.js"></script>
<script src="//dufozrddxzwdn.cloudfront.net/ <VERSION_NUMBER> /filepreviews.min.js"></script>
<script src="//dufozrddxzwdn.cloudfront.net/ <VERSION_NUMBER> /filepreviews.js"></script>
FilePreviews.generate(url, function(err, result) {
if (err) {
console.error(err);
} else {
console.log(result.previewURL);
console.log(result.metadata);
}
});
git clone https://github.com/GetBlimp/filepreviews.js.git
cd filepreviews.js
npm install && grunt