{"id":15693701,"url":"https://github.com/jonschlinkert/github-trees","last_synced_at":"2025-05-08T04:54:57.321Z","repository":{"id":65990686,"uuid":"100995232","full_name":"jonschlinkert/github-trees","owner":"jonschlinkert","description":"Get a tree from a GitHub repository.","archived":false,"fork":false,"pushed_at":"2018-01-23T18:56:20.000Z","size":9,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-08T04:54:50.518Z","etag":null,"topics":["api","github","javascript","nodejs","tree","trees"],"latest_commit_sha":null,"homepage":"https://github.com/jonschlinkert","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/jonschlinkert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-08-21T21:47:10.000Z","updated_at":"2023-03-21T13:24:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"af1d8e62-a29a-45b2-8996-885fb35bf536","html_url":"https://github.com/jonschlinkert/github-trees","commit_stats":{"total_commits":3,"total_committers":2,"mean_commits":1.5,"dds":"0.33333333333333337","last_synced_commit":"9dc2a99bb6788090e4a7d78811e7e77c3e5ceb6e"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fgithub-trees","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fgithub-trees/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fgithub-trees/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fgithub-trees/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonschlinkert","download_url":"https://codeload.github.com/jonschlinkert/github-trees/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253002851,"owners_count":21838640,"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","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":["api","github","javascript","nodejs","tree","trees"],"created_at":"2024-10-03T18:47:36.754Z","updated_at":"2025-05-08T04:54:57.301Z","avatar_url":"https://github.com/jonschlinkert.png","language":"JavaScript","readme":"# github-trees [![NPM version](https://img.shields.io/npm/v/github-trees.svg?style=flat)](https://www.npmjs.com/package/github-trees) [![NPM monthly downloads](https://img.shields.io/npm/dm/github-trees.svg?style=flat)](https://npmjs.org/package/github-trees) [![NPM total downloads](https://img.shields.io/npm/dt/github-trees.svg?style=flat)](https://npmjs.org/package/github-trees)\n\n\u003e Get a tree from a GitHub repository.\n\nFollow this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), for updates on this project and others.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save github-trees\n```\n\n## Usage\n\nSee [github-base](https://github.com/jonschlinkert/github-base) for documentation for all options and authentication choices.\n\n```js\nvar tree = require('github-trees');\nvar opts = {\n  username: 'YOUR_USERNAME',\n  password: 'YOUR_PASSWORD'\n};\n\ntree('breakdance/breakdance', opts)\n  .then(function(res) {\n    console.log(res);\n  })\n```\n\n## Get a Tree Recursively\n\n```js\nvar tree = require('github-trees');\nvar opts = {\n  recursive: true,\n  username: 'YOUR_USERNAME',\n  password: 'YOUR_PASSWORD'\n};\n\ntree('breakdance/breakdance', opts)\n  .then(function(res) {\n    console.log(res);\n  })\n```\n\n## About\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [get-file](https://www.npmjs.com/package/get-file): CLI to get a single file from Github repository. | [homepage](https://github.com/jonschlinkert/get-file \"CLI to get a single file from Github repository.\")\n* [gists](https://www.npmjs.com/package/gists): Methods for working with the GitHub Gist API. Node.js/JavaScript | [homepage](https://github.com/jonschlinkert/gists \"Methods for working with the GitHub Gist API. Node.js/JavaScript\")\n* [github-base](https://www.npmjs.com/package/github-base): JavaScript wrapper that greatly simplifies working with GitHub's API. | [homepage](https://github.com/jonschlinkert/github-base \"JavaScript wrapper that greatly simplifies working with GitHub's API.\")\n* [repos](https://www.npmjs.com/package/repos): Pull down a list of GitHub repositories for the specified user or org, and save… [more](https://github.com/jonschlinkert/repos) | [homepage](https://github.com/jonschlinkert/repos \"Pull down a list of GitHub repositories for the specified user or org, and save to a local JSON file.\")\n* [topics](https://www.npmjs.com/package/topics): Get and update GitHub repository topics. | [homepage](https://github.com/jonschlinkert/topics \"Get and update GitHub repository topics.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\nPlease read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards.\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme \u0026\u0026 verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install \u0026\u0026 npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on August 21, 2017._","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fgithub-trees","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonschlinkert%2Fgithub-trees","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fgithub-trees/lists"}