Skip to content

Demo client library for FilePreviews.io - Generate image previews and metadata from almost any kind of file

License

Notifications You must be signed in to change notification settings

elving/filepreviews.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FilePreviews.io

This is a client library for the Demo API of FilePeviews.io service. A lot more to come very soon.

Installation

bower install filepreviews

Demo

We have a working demo on jsBin.

Client side usage

Latest version
<script src="//dufozrddxzwdn.cloudfront.net/latest/filepreviews.min.js"></script>
<script src="//dufozrddxzwdn.cloudfront.net/latest/filepreviews.js"></script>
You can also link to a specific version
<script src="//dufozrddxzwdn.cloudfront.net/ <VERSION_NUMBER> /filepreviews.min.js"></script>
<script src="//dufozrddxzwdn.cloudfront.net/ <VERSION_NUMBER> /filepreviews.js"></script>

Example code

FilePreviews.generate(url, function(err, result) {
  if (err) {
    console.error(err);
  } else {
    console.log(result.previewURL);
    console.log(result.metadata);
  }
});

Build

git clone https://github.com/GetBlimp/filepreviews.js.git
cd filepreviews.js
npm install && grunt

About

Demo client library for FilePreviews.io - Generate image previews and metadata from almost any kind of file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.0%
  • CSS 2.0%