https://github.com/sourcec0de/filepicker
NodeJS Filepicker library adapted from filepicker-node. Added streaming support, and built with coffee-script :D
https://github.com/sourcec0de/filepicker
Last synced: 15 days ago
JSON representation
NodeJS Filepicker library adapted from filepicker-node. Added streaming support, and built with coffee-script :D
- Host: GitHub
- URL: https://github.com/sourcec0de/filepicker
- Owner: sourcec0de
- Created: 2013-06-05T22:58:58.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-05T23:12:52.000Z (almost 13 years ago)
- Last Synced: 2025-08-18T16:44:12.864Z (9 months ago)
- Language: CoffeeScript
- Size: 121 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
filepicker.js
===============
A Node.js Filepicker Library, with streaming
Installation
-------------
``` bash
$ npm install filepicker.js
```
#### Instantiation
``` javascript
var Filepicker = require('filepicker.js');
var filepicker = new Filepicker('YOUR_API_KEY');
```
#### Methods
1. `store`
* Stores a file into filepicker and passes the url in the response
``` javascript
filepicker.store("test", {persist:true}, function(err, url) {
console.log(url);
});
```
2. `read`
* Reads a file from filepicker and passes the contents in the callback
* For now uses utf8
``` javascript
filepicker.read(url, {}, function(err,data){
console.log(data);
});
```
3. `stream`
* see examples/stream.coffe
* see examples/stream.js