all-starwars-names

2.3.9 • Public • Published

all-starwars-names

Build Status Codecov NPM Downloads NPM Version GitHub License

A simple npm library that provides a collection of all Star Wars character names and the ability to generate a random unique Star Wars name.

Installation

To install the all-starwars-names library, use the following command:

npm install all-starwars-names

Usage

  1. Get all Star Wars names:

    const { all } = require('all-starwars-names');
    console.log(all);

    This will return an array of all the Star Wars character names.

  2. Get a random unique Star Wars name:

    const { random } = require('all-starwars-names');
    console.log(random());

    This will return a single, unique Star Wars character name.

API

The all-starwars-names library provides the following API:

  1. all:

    • Description: Returns an array of all the Star Wars character names.
    • Usage: const { all } = require('all-starwars-names'); console.log(all);
  2. random():

    • Description: Returns a single, unique Star Wars character name.
    • Usage: const { random } = require('all-starwars-names'); console.log(random());

Contributing

If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on the GitHub repository.

License

This project is licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i all-starwars-names

Weekly Downloads

6

Version

2.3.9

License

MIT

Unpacked Size

53.2 kB

Total Files

24

Last publish

Collaborators

  • zikazaki