{"id":23535155,"url":"https://github.com/warelab/gramene-trees-client","last_synced_at":"2025-09-01T08:05:05.880Z","repository":{"id":29818221,"uuid":"33362702","full_name":"warelab/gramene-trees-client","owner":"warelab","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-04T20:54:55.000Z","size":255,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-11T15:24:37.944Z","etag":null,"topics":["gramene","gramene-search"],"latest_commit_sha":null,"homepage":null,"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/warelab.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":"2015-04-03T12:41:54.000Z","updated_at":"2018-12-14T17:03:30.000Z","dependencies_parsed_at":"2022-08-31T22:20:25.725Z","dependency_job_id":null,"html_url":"https://github.com/warelab/gramene-trees-client","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/warelab/gramene-trees-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warelab%2Fgramene-trees-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warelab%2Fgramene-trees-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warelab%2Fgramene-trees-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warelab%2Fgramene-trees-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/warelab","download_url":"https://codeload.github.com/warelab/gramene-trees-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warelab%2Fgramene-trees-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273093091,"owners_count":25044436,"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-09-01T02:00:09.058Z","response_time":120,"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":["gramene","gramene-search"],"created_at":"2024-12-26T01:15:18.805Z","updated_at":"2025-09-01T08:05:05.853Z","avatar_url":"https://github.com/warelab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gramene-trees-client\nProvide convenient API for trees. Currently only used for [NCBI taxonomy data](https://www.ncbi.nlm.nih.gov/taxonomy).\n\n[![Build Status](https://travis-ci.org/warelab/gramene-trees-client.svg)](https://travis-ci.org/warelab/gramene-trees-client)\n[![MIT License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://img.shields.io/github/license/mashape/apistatus.svg)\n[![Platforms](https://img.shields.io/badge/Platforms-macOS%20%7C%20Linux%20%7C%20Windows%20%7C%20node-lightgrey.svg)](https://img.shields.io/badge/Platforms-macOS%20%7C%20Linux%20%7C%20Windows%20%7C%20node-lightgrey.svg)\n\n\n\n\n## Installation\nYou need to pull down the package via npm. You also can use [yarn](https://github.com/yarnpkg/yarn).\n\n```\nnpm install gramene-trees-client --save\n```\n\n##Usage\n\n###Promises\n```javascript\n var  treeLoader = grameneTreesClient.promise;\n        treeLoader.get().then(function(taxonomy) {\n            console.log(taxonomy.model);\n        }).catch(function(error) {\n            console.error(\"Error in getting data: \");\n        });\n```\n\nPromises-functionality can be obtained from transpilers like [babel.js](https://babeljs.io) or a library like a library like [q](https://github.com/kriskowal/q)\n\n\n###Await/Async\n\n```javascript\nvar treeLoader = require(\"gramene-trees-client\").promise;\nvar taxonomy = await treeLoader.get();\n\nconsole.log(taxonomy.model)\n```\n\nAwait/Async functionaltiy can be be obtained from transpilers like [babel.js](https://babeljs.io) or a library like [asyncawait](https://github.com/yortus/asyncawait). Note, with the asyncawait library, the await and async are functions rather than keywords.\n\n**This can be adapted to work in ES2015+ via a transpiler or browsers with native support like in Chrome**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarelab%2Fgramene-trees-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwarelab%2Fgramene-trees-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarelab%2Fgramene-trees-client/lists"}