Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anyfs/dropbox-adapter

Dropbox adapter for AnyFS
https://github.com/anyfs/dropbox-adapter

Last synced: about 2 months ago
JSON representation

Dropbox adapter for AnyFS

Awesome Lists containing this project

README

        

# anyfs-dropbox-adapter

[![npm](https://img.shields.io/npm/v/anyfs-dropbox-adapter.svg?style=flat-square)](https://www.npmjs.com/package/anyfs-dropbox-adapter)
[![npm](https://img.shields.io/npm/dm/anyfs-dropbox-adapter.svg?style=flat-square)](https://www.npmjs.com/package/anyfs-dropbox-adapter)
[![Travis](https://img.shields.io/travis/anyfs/dropbox-adapter.svg?style=flat-square)](https://travis-ci.org/anyfs/dropbox-adapter)
![npm](https://img.shields.io/npm/l/anyfs-dropbox-adapter.svg?style=flat-square)

Dropbox adapter for AnyFS

## Usage

```js
var AnyFS = require('anyfs');
var Adapter = require('anyfs-dropbox-adapter');
var adapter = new Adapter({
key: "appkey",
secret: "secret",
token: "token"
});

var fs = new AnyFS(adapter);

fs.list('/dir', function(err, list) {
console.log(list);
});
```

## Test

Create `.secret.json` with credentials of your dropbox account:

```json
{
"key": "appkey",
"secret": "appsecret",
"token": "token"
}
```

Then run:

```
npm install
npm test
```