JSPM

shuffle-words

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1401
  • Score
    100M100P100Q108583F

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.

Package Exports

  • shuffle-words

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (shuffle-words) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.