Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

secretsanta

codeocelot7ISC1.0.1

better than a hat!

readme

SecretSanta

A method to assign secret santas!

Useage

Commandline:

Save your names in names.txt, each on a separate line.

npm start

Output is written to output/ directory. Each file is named for the assigned giver and contains the associated reciever.

As a module:

var secretSanta = require('secretsanta');
var names = ['Alice','Bob','Eve']//...
console.log(secretSanta(names));