{"id":32263419,"url":"https://github.com/evnm/dropbox-node","last_synced_at":"2025-10-22T20:55:45.282Z","repository":{"id":57155956,"uuid":"992980","full_name":"evnm/dropbox-node","owner":"evnm","description":"A **DEPRECATED** Node.js client library for the official Dropbox API","archived":false,"fork":false,"pushed_at":"2014-03-31T19:59:11.000Z","size":349,"stargazers_count":243,"open_issues_count":1,"forks_count":35,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-10-22T20:55:30.832Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evnm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-10-16T18:01:24.000Z","updated_at":"2024-07-25T03:42:13.000Z","dependencies_parsed_at":"2022-08-28T06:51:03.865Z","dependency_job_id":null,"html_url":"https://github.com/evnm/dropbox-node","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/evnm/dropbox-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evnm%2Fdropbox-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evnm%2Fdropbox-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evnm%2Fdropbox-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evnm%2Fdropbox-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evnm","download_url":"https://codeload.github.com/evnm/dropbox-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evnm%2Fdropbox-node/sbom","scorecard":{"id":386909,"data":{"date":"2025-08-11","repo":{"name":"github.com/evnm/dropbox-node","commit":"a6682c817e51300f3df4b75f53e74e0ede030b91"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":3,"reason":"Found 7/19 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T16:51:19.606Z","repository_id":57155956,"created_at":"2025-08-18T16:51:19.606Z","updated_at":"2025-08-18T16:51:19.606Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280511639,"owners_count":26343102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-22T20:55:40.966Z","updated_at":"2025-10-22T20:55:45.273Z","avatar_url":"https://github.com/evnm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dropbox-node\n\nAn OAuth-enabled Node.js client for working with the Dropbox API.\n\n## DISCLAIMER\n\nThis project has been deprecated in favor of [Dropbox's official JavaScript library](https://github.com/dropbox/dropbox-js).\n\n## Installation\n\ndropbox-node depends on [node-oauth](http://github.com/ciaranj/node-oauth).\n\nTo install via npm\n\n    npm install dropbox-node\n\nTo install by hand, download the module and create a symlink in `~/.node_libraries`\n\n    $ ln -s /path/to/dropbox-node/ ~/.node_libraries/dropbox-node\n\n## Usage\n\nTo start, grab a consumer key and secret from [dropbox.com/developers](https://dropbox.com/developers).\n\n### Object construction and access key pair retrieval\nFirst construct a DropboxClient object, passing in the consumer key and secret.\n\n    var dropbox = new DropboxClient(consumer_key, consumer_secret)\n\nBefore calling any Dropbox API methods, an access token pair must be obtained. This can be done one of two ways:\n\n  1. If the access token and secret are known a priori, they can be passed directly into the DropboxClient constructor.\n\n        var dropbox = new DropboxClient(consumer_key, consumer_secret,\n                                        access_token, access_token_secret)\n\n  2. Otherwise, `getAccessToken` must be called in order to initialize the OAuth credentials.\n\n        dropbox.getAccessToken(dropbox_email, dropbox_password, callback)\n\nThe callback given to `getAccessToken` takes an error object, an access token, and an access token secret (see example below). **Please note that users' passwords should never be stored.** It is best to acquire a token once and then use it for all subsequent requests.\n\n### Calling API methods\n\ndropbox-node provides methods covering [each of the Dropbox API methods](https://www.dropbox.com/developers/docs). For example, to fetch and print the display name and email address associated with your account:\n\n    dropbox.getAccountInfo(function (err, data) {\n      if (err) console.log('Error: ' + err)\n      else console.log(data.display_name + ', ' + data.email)\n    })\n\nNote that (at least at the start of a user's session) a valid access token pair must be obtained prior to interacting with the rest of the Dropbox API. This means that the API methods must be invoked within the callback passed to `getAccessToken` unless it is guaranteed that `getAccessToken` was called previously. As an example of this latter case, if building a web app, one could call API methods directly in a route that can only be accessed after going through a sign-in phase in which a call to `getAccessToken` is made.\n\nHere we upload a file and remotely move it around before deleting it.\n\n    dropbox.getAccessToken(email, pwd, function (err, token, secret) {\n      // Upload foo.txt to the Dropbox root directory.\n      dropbox.putFile('foo.txt', 'foo.txt', function (err, data) {\n        if (err) return console.error(err)\n\n        // Move it into the Public directory.\n        dropbox.move('foo.txt', 'Public/foo.txt', function (err, data) {\n          if (err) return console.error(err)\n\n          // Delete the file.\n          dropbox.deleteItem('Public/foo.txt', function (err, data) {\n            if (err) console.error(err.stack)\n          })\n        })\n      })\n    })\n\nFor a more practical example, check out this [walkthrough of building a simple Dropbox file browser](http://evanmeagher.net/2010/10/dropbox-file-browser).\n\n### Optional arguments\n\nOptional arguments (as specified in the [Dropbox API documentation](https://www.dropbox.com/developers/docs)) can be given to API methods via an argument object.\n\nFor example, here we call `getAccountInfo` and direct the API to include the HTTP status code in the response.\n\n    dropbox.getAccountInfo({ status_in_response: true }, callback)\n\nEach method (except `getAccessToken`) can optionally take an access token and an access token secret as strings. This is the one way to get around having to call `getAccessToken` in cases where a valid key pair is known.\n\nFor example, here we fetch the metadata about the Dropbox root directory, passing in an explicit key pair stored in variables.\n\n    dropbox.getMetadata('', { token: token, secret: secret }, callback)\n\n## API\n\n### new DropboxClient()\n\n### DropboxClient#getAccessToken(email, password, callback(err, access_token, access_token_secret))\n\nFetches an access token and secret based on the email and password given. Stores the token and secret in the DropboxClient instance and calls the callback them.\n\n### DropboxClient#getAccountInfo([optargs], callback(err, accountInfo))\nhttps://www.dropbox.com/developers/reference/api#account-info\n\nGets account information from the client.\n\n### DropboxClient#createAccount(email, first_name, last_name, password, [optargs], callback(err, accountInfo))\n\nCreates a new Dropbox account.\n\n### DropboxClient#getFile(path, [optargs], [callback(err, body)])\nhttps://www.dropbox.com/developers/reference/api#files-GET\n\nRetrieves a file specified by the path. `callback` will be called with a possible error and the buffer of the contents of the file. This method also returns a readable stream that can be used to pipe the contents.\n\n```js\ndropboxClient('mybigfile.mpeg').pipe(fs.createWriteStream('localbigfile.mpeg');\n```\n\n`optargs` can also have a `rev` field to specify the revision of the file to download, and `range` for [HTTP Range Retrieval Requests](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2).\n\n```js\n// download the first 1024 byte\ndropboxClient('file.zip', { range: 'bytes=0-1024'}, function(err, data) {\n  console.log(data.length); // 1024. that is if the file is at least 1024 bytes\n});\n```\n\n### DropboxClient#putFile(filepath, remotepath, [optargs], callback(err, metadata))\nhttps://www.dropbox.com/developers/reference/api#files_put\n\nUploads a file specified by `filepath` to `remotepath` on Dropbox. Dropbox currently does not support streaming uploads, and the max upload is 150 MB. `optargs` can also take additional fields `overwrite` and `parent_rev`.\n\n### DropboxClient#put(contents, remotepath, [optargs], callback(err, metadata))\no\nSimilar to `putFile()` but places `contents` into a created file at `remotepath`. `contents` can be a buffer or string.\n\n### DropboxClient#getMetadata(path, [optargs], callback(err, metadata))\nhttps://www.dropbox.com/developers/reference/api#metadata\n\nGets metadata of file/folder specified by `path`. `optargs` can have fields `hash`, `list`, `include_deleted` and `rev`.\n\n### DropboxClient#delta([cursor], [optargs], callback(err, changes))\nhttps://www.dropbox.com/developers/reference/api#delta\n\nKeeps up with changes from a client's Dropbox. `changes` is an array of arrays with first element as the path and second as metadata.\n\n### DropboxClient#changesStream([startingCursor], [optargs])\nConvenient method that provides a more friendly API to `delta()`. Returns an event emitter that emits `data` events with `path` and `metadata` parameters on changes to the client's Dropbox. Also can emit `reset` and `error` events. The returned event emitter also has a `pause()` and `resume()` methods.\n\n### DropboxClient#search(folderpath, query, [optargs], callback(err, results))\nhttps://www.dropbox.com/developers/reference/api#search\n\nSearches `folderpath` for files matching `query`. `results` is an array of metadata. `optargs` can take `file_limit` and `include_deleted`.\n\n### DropboxClient#getThumbnail(filepath, [optargs], [callback(err, body, metadata)])\nhttps://www.dropbox.com/developers/reference/api#thumbnails\n\nDownloads a thumbnail image located at `filepath`. Like `getFile()`, the `callback` can get buffered data or the returned readable stream can be piped. `optargs` can take `format` and `size` fields.\n\n### DropboxClient#shares(path, [optargs], [callback(err, link)])\nhttps://www.dropbox.com/developers/reference/api#shares\n\nCreates and gets a link to file/folder specified by `path`.\n\n### DropboxClient#media(filepath, [optargs], [callback(err, link)])\nhttps://www.dropbox.com/developers/reference/api#media\n\nCreates and gets a direct link to file specified by `filepath`.\n\n### DropboxClient#copy(from_path, to_path, [optargs], callback)\nhttps://www.dropbox.com/developers/reference/api#fileops-copy\n\nCopies a file. `from_copy_ref` field can be given in `optargs` to use it instead of `from_path`.\n\n### DropboxClient#createFolder(path, [optargs], callback(err, metadata))\nhttps://www.dropbox.com/developers/reference/api#fileops-create-folder\n\nCreates a folder at the given path.\n\n### DropboxClient#deleteItem(path, [optargs], callback(err, metadata))\nhttps://www.dropbox.com/developers/reference/api#fileops-delete\n\nDeletes file or folder from path.\n\n### DropboxClient#move(from_path, to_path, [optargs], callback(err, metadata))\nhttps://www.dropbox.com/developers/reference/api#fileops-move\n\nMoves a file to another path.\n\n\n## Testing\n\ndropbox-node depends on [jasmine-node](http://github.com/mhevery/jasmine-node) for testing. Note that the currently-implemented tests are trivial, due to a lack of a way to effectively mock the Dropbox API.\n\nRun specs with `node specs.js` from the root `dropbox-node` directory.\n\n## TODO\n* Improve test coverage.\n* Improve documentation.\n* Add ability to interact with application sandboxes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevnm%2Fdropbox-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevnm%2Fdropbox-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevnm%2Fdropbox-node/lists"}