1.0.0 • Published 8 years ago

js-shuffle v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

js-shuffle

Array shuffle

Install

npm install js-shuffle

Usage

var shuffle = require('js-shuffle');
var array = ['text1', 'text2', 'text3', 'text4', 'text5', 'text6', 'text7'];
var result = shuffle(array, 2);

params: shuffle( Array )

Client

Usage: cli shuffle -t items...

Options:

-h, --help output usage information -V, --version output the version number -f, --file filename Load the file, the shuffle of multiple items -t, --text str Text items shuffle, ("text1|text2...") -n, --num number

shuffle -t "text1|text2|text3|text4|text5|text6|text7" -n 2

shuffle -f ./file.txt > output.txt
1.0.0

8 years ago