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

outcast

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

outcast

A tool to randomly remove a person from the game or pick a winner

latest
Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

outcast

=======

A fun module that helps you randomly remove people from a game. Do you have a tie? Use outcast to break the tie.

Installation

npm install outcast
var outcast = require('outcast');

Usage

You can remove as many players from the game at a time as you want. (Defaults to one)

Now with cli capability - so you can you it from your terminal

Terminal

npm install -g outcast

outcast -r bill john mike sarah       // Remove one (use -r)
outcast -R 2 bill john mike sarah     // Remove [num] passed in (use -R [num])
outcast -r -s "bill john mike sarah"  // Pass as string
outcast -w bill john mike sarah       // Pick a winner

Remove One

var gamePlayers = ['John', 'Bill', 'Sarah', 'Mike', 'Rebecka'];
OR
var gamePlayers = 'John Bill Sarah Mike Rebecka'; // Space delimited

outcast.remove(gamePlayers);
Returns

['John', 'Sarah', 'Mike', 'Rebecka'] // Removes a random value

Remove Many

var gamePlayers = 'John Bill Sarah Mike Rebecka'; // Space delimited

outcast.remove(gamePlayers, 3);
Returns

['Bill', 'Mike'] // Removes 3 random value

Just pick a winner already...

var gamePlayers = 'John Bill Sarah Mike Rebecka'; // Space delimited

outcast.winner(gamePlayers);
Returns

['Sarah'] // Pick a random value

Keywords

random

FAQs

Package last updated on 10 Dec 2013

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