{"id":27290982,"url":"https://github.com/intercaetera/nrdb","last_synced_at":"2025-04-11T21:55:47.063Z","repository":{"id":124225627,"uuid":"94788229","full_name":"intercaetera/nrdb","owner":"intercaetera","description":"NPM module for querying the NetrunnerDB api.","archived":false,"fork":false,"pushed_at":"2017-06-19T16:30:46.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T21:55:44.084Z","etag":null,"topics":[],"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/intercaetera.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,"governance":null}},"created_at":"2017-06-19T14:52:29.000Z","updated_at":"2017-06-19T19:45:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"da966640-ee4b-4467-ad13-acfce478e272","html_url":"https://github.com/intercaetera/nrdb","commit_stats":null,"previous_names":["mrhuds0n/nrdb"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intercaetera%2Fnrdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intercaetera%2Fnrdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intercaetera%2Fnrdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intercaetera%2Fnrdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/intercaetera","download_url":"https://codeload.github.com/intercaetera/nrdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248487732,"owners_count":21112188,"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":[],"created_at":"2025-04-11T21:55:46.307Z","updated_at":"2025-04-11T21:55:47.041Z","avatar_url":"https://github.com/intercaetera.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nrdb\nNPM module for asynchronously querying the public endpoints of the NetrunnerDB API.\n\n[![NPM](https://nodei.co/npm/nrdb.png)](https://npmjs.org/package/nrdb)\n\n## Installation\n```\nnpm install --save nrdb\n// OR\nyarn add nrdb\n```\n\n## Example usage\n\n```javascript\nvar nrdb = require('nrdb')\n\n// Print all cards on the latest MWL.\nnrdb.mwl()\n.then(data =\u003e {\n  let cards = data[data.length-1].cards\n\n  for(let each in cards) {\n    nrdb.card(each)\n    .then((data) =\u003e {\n      let card = data[0]\n\n      let mwlstars = (cards[each] === 3) ? \"***\" : \"*\"\n\n      console.log(`${card.title} ${mwlstars}`)\n    })\n  }\n})\n```\n\n## Implemented routes\n\nSee docs for each of those in the [NRDB API documentation](https://netrunnerdb.com/api/doc)\n\n- `card(id)`\n- `cards`\n- `cycle(code)`\n- `cycles`\n- `decklist(id)`\n- `decklistByDate(date)` (`date` is either a date string formatted with `YYYY-MM-DD` or a Date object)\n- `faction(code)`\n- `factions`\n- `mwl`\n- `pack(code)`\n- `packs`\n- `prebuilts`\n- `side(code)`\n- `sides`\n- `type(code)`\n- `types`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintercaetera%2Fnrdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintercaetera%2Fnrdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintercaetera%2Fnrdb/lists"}