New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lotr-names

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lotr-names

Get random Lord of the Rings names

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

lor-names

travis build codecov coverage version downloads MIT License semantic-release

Get random names from Lord of the Rings characters.

lor-names

Installation

This package is distributed via npm:

npm install lor-names

Usage

var names = require('lor-names');
var allNames = names.all;
var randomName = names.random();
var threeRandomNames = names.random(3);

Other

This library was developed by me as part of an egghead.io series called "How to Write a JavaScript Library."

I'm now also using it to give a workshop for Frontend Masters.

Project Setup

This project assumes you have NodeJS v6 or greater installed. You should also have npm v3 or greater installed as well (this comes packaged with Node 6). You'll also need a recent version of git installed as well.

You may have come to this project from different varying sources. There are a different series of branches for each workshop/course I've done. To get started with the project, start with this:

  • Sign up for a GitHub Account (if you don't already have one)
  • Fork this repo
  • Clone your fork
  • In the directory you cloned the repository, run git fetch --all

If you need help with these steps, you might check out this free Egghead.io course which can help you get things going.

Finally, based on which version of the project you're looking for (workshop, egghead, or Frontend Masters) you'll run one of the following commands in the cloned directory:

  • Frontend Masters Workshop: npm run setup:fem
  • Egghead Course: npm run setup:egghead

If you get any failures at this point something is wrong and needs to be fixed. Remember, Google and StackOverflow are your friends.

You might find it helpful to see a list of the available branches. Run: git branch for that.

Keywords

random

FAQs

Package last updated on 27 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts