Socket
Book a DemoInstallSign in
Socket

shuffle-words

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shuffle-words

Shuffle the words in a string and optionally the letters in each word using the Fisher-Yates algorithm. Useful for creating test fixtures, benchmarking samples, etc.

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
1.4K
-0.15%
Maintainers
1
Weekly downloads
 
Created
Source

shuffle-words NPM version

Shuffle the words in a string and optionally the letters in each word using the Fisher-Yates algorithm. Useful for creating test fixtures, benchmarking samples, etc.

Install

Install with npm:

npm i shuffle-words --save-dev

Run tests

npm test

Usage

var shuffle = require('shuffle-words');

shuffle('foo bar baz');
//=> 'baz foo bar'

Shuffle letters and words:

shuffle('foo bar baz', true);
//=> 'zba rba ofo'

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license

This file was generated by verb-cli on October 02, 2014.

Keywords

algorithm

FAQs

Package last updated on 02 Oct 2014

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