{"id":15503809,"url":"https://github.com/kentcdodds/starwars-names","last_synced_at":"2025-04-04T08:03:36.651Z","repository":{"id":35952547,"uuid":"40242051","full_name":"kentcdodds/starwars-names","owner":"kentcdodds","description":"Get a random Star Wars name","archived":false,"fork":false,"pushed_at":"2022-04-08T21:26:17.000Z","size":8927,"stargazers_count":184,"open_issues_count":1,"forks_count":210,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-28T17:05:38.110Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://tonicdev.com/npm/starwars-names","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/kentcdodds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-05T11:39:56.000Z","updated_at":"2025-01-14T05:40:23.000Z","dependencies_parsed_at":"2022-08-31T08:11:29.054Z","dependency_job_id":null,"html_url":"https://github.com/kentcdodds/starwars-names","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fstarwars-names","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fstarwars-names/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fstarwars-names/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fstarwars-names/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kentcdodds","download_url":"https://codeload.github.com/kentcdodds/starwars-names/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247138227,"owners_count":20890010,"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":"2024-10-02T09:14:45.876Z","updated_at":"2025-04-04T08:03:36.618Z","avatar_url":"https://github.com/kentcdodds.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# starwars-names\n\n[![travis build](https://img.shields.io/travis/kentcdodds/starwars-names.svg?style=flat-square)](https://travis-ci.org/kentcdodds/starwars-names)\n[![codecov coverage](https://img.shields.io/codecov/c/github/kentcdodds/starwars-names.svg?style=flat-square)](https://codecov.io/github/kentcdodds/starwars-names)\n[![version](https://img.shields.io/npm/v/starwars-names.svg?style=flat-square)](http://npm.im/starwars-names)\n[![downloads](https://img.shields.io/npm/dm/starwars-names.svg?style=flat-square)](http://npm-stat.com/charts.html?package=starwars-names\u0026from=2015-08-01)\n[![MIT License](https://img.shields.io/npm/l/starwars-names.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)\n\nGet random names from Star Wars characters.\n\n\u003ca href=\"https://app.codesponsor.io/link/PKGFLnhDiFvsUA5P4kAXfiPs/kentcdodds/starwars-names\" rel=\"nofollow\"\u003e\u003cimg src=\"https://app.codesponsor.io/embed/PKGFLnhDiFvsUA5P4kAXfiPs/kentcdodds/starwars-names.svg\" style=\"width: 888px; height: 68px;\" alt=\"Sponsor\" /\u003e\u003c/a\u003e\n\n![starwars-names](other/starwars-names.gif)\n\n## Installation\n\nThis package is distributed via npm:\n\n```\nnpm install starwars-names\n```\n\n## Usage\n\n```javascript\nvar names = require('starwars-names');\nvar allNames = names.all;\nvar randomName = names.random();\nvar threeRandomNames = names.random(3);\n```\n\n## Other\n\nThis library was developed by [me](https://twitter.com/kentcdodds) as part of an\n[egghead.io](http://egghead.io/) series called \"How to Write a JavaScript Library.\"\n\nI'm now also using it to give [a workshop](http://kcd.im/fem-oss) for\n[Frontend Masters](https://frontendmasters.com).\n\n### Project Setup\n\nThis project assumes you have [NodeJS v6](http://nodejs.org/) or greater installed. You should\nalso have [npm v3](https://www.npmjs.com/) or greater installed as well (this comes packaged\nwith Node 6). You'll also need a recent version of [git](https://git-scm.com/) installed\nas well.\n\nYou may have come to this project from different varying sources. There are a\ndifferent series of branches for each workshop/course I've done. To get started with\nthe project, start with this:\n\n1. [Sign up](https://github.com/join) for a GitHub Account (if you don't already have one)\n2. [Fork](https://help.github.com/articles/fork-a-repo/) this repo\n3. [Clone](https://help.github.com/articles/cloning-a-repository/) your fork\n4. In the directory you cloned the repository, run `git fetch --all`\n\nIf you need help with these steps, you might check out\n[this free Egghead.io course](http://kcd.im/pull-request) which can help you get things going.\n\nFinally, based on which version of the project you're looking for (workshop, egghead, or\nFrontend Masters) you'll run one of the following commands in the cloned directory:\n\n- **Frontend Masters Workshop**: `npm run setup:fem`\n- **Egghead Course**: `npm run setup:egghead`\n\nIf you get any failures at this point something is wrong and needs to be fixed. Remember,\n[Google](https://google.com) and [StackOverflow](https://stackoverflow.com) are your friends.\n\nYou might find it helpful to see a list of the available branches. Run: `git branch` for that.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fstarwars-names","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkentcdodds%2Fstarwars-names","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fstarwars-names/lists"}