npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

dropbox-paper

v1.1.1

Published

dropbox paper sdk

Readme

dropbox-paper sdk

The Dropbox paper JavaScript SDK is a lightweight, promise based interface to the Dropbox Paper api.

Why Dropbox Paper sdk

  • Easy and simple to use.
  • Returns Doc Name along when used doc list sdk method where dropbox api only returns array of doc ids.

Quickstart

$ npm install --save dropbox-paper
var dropboxpaper = require("dropbox-paper");

// pass your access token
var paper = new dropboxpaper({accessToken: "Your dropbox paper access token"});

New Version Updates and Notes

Since version 1.1.0 it contains two new method paper.docPolicySet() and paper.archiveDoc(). New update has been made in paper.listDocs() method, now you can also pass cursor in this method. For more information have a go through.

To update the package run

$ npm update --save dropbox-paper

Available Methods

List Docs

Since update of 1.1.0 this methods also accepts cursor value. You can either pass limit with or with optional parameters see docs Or a cursor value to retrieve docs from that cursor.

// Example
paper.listDocs({limit: 10})
.then(function(result){
console.log(result);
})
.catch(function(error){
console.log(error);
});

Delete Doc

Pass doc id to delete any particular doc. This method will permanently delete the doc. see docs

// Example
paper.deleteDoc({doc_id: "atdn2KdIIiPYTPbBEjk5a"})
.then(function(result){
console.log(result);
})
.catch(function(error){
console.log(error);
});

Download Doc

Pass doc id and export format. Export format must be "makrdown" or "html". Downloads doc in current folder. For more information see docs

// Example
// Recommends to specify "filename" to download doc. If filename is not pass default downloads it with name "download".
paper.downloadDoc({doc_id: "y5JzeuQrJBJlNHTfjlk2L", export_format: "markdown", filename: "my doc"})
.then(function(result){
console.log(result);
})
.catch(function(error){
console.log(error);
});

Doc Users List

Pass doc id to see users of that doc. For optional parameters see docs

// Example
paper.docUsersList({doc_id: "y5JuezQrJBJNhlTfjlk2L"})
.then(function(result){
console.log(result);
})
.catch(function(error){
console.log(error);
});

Doc Users Add

Pass doc id and members to add any user to the doc. For more information see docs

// Example
paper.docUsersAdd({"doc_id":"zYsQe7JGywV77Onbt2UJO","members":[{"member":{".tag":"email","email":"user email"},"permission_level":{".tag":"edit"}}]})
.then(function(result){
console.log(result);
})
.catch(function(error){
console.log(error);
});

Doc Policy Set

Currently only supports public_sharing_policy. Pass doc id on which you want to set policy. For more information see docs

// Example
paper.docPolicySet({"doc_id":"P6evXjsBzf0l0ZZrbYVlf","sharing_policy":{"public_sharing_policy":{".tag":"people_with_link_can_view_and_comment"}}})
.then(function(result) {
console.log(result);
}).catch(function(error) {
console.log(error);
})

Archive Doc

Pass doc id of doc you want to archive.

// Example
paper.archiveDoc({doc_id: "y5JzeuLkuBJNhlTfjXr2L"})
.then(function(result) {
console.log(result);
}).catch(function(error) {
console.log(error);
})