Package Exports
- wordscramble
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 (wordscramble) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Wordsramble
Wordscramble is a completely pointless Node package which you shouldn't install. The only thing wordscramble does is scramble JavaScript object values. This is an is-thirteen level of uselessness.
On the other hand, Wordscramble is reaonably robust against whatever random crap you throw at it, and it does some cool stuff with recursion to get the job done.
Badges
Look at all the shiny badges! Badges mean quality and Wordscramble has six quality. Look at them! Look at them! :)
Installation
npm install wordscramble
Usage
var scramble = require('wordscramble').ws;
scramble(true); // false
scramble(0.123131231); // 11.32233110
scramble('heighliner'); // glhenehrii
scramble({atreides: 'Caladan', corinno: 'Kaitain'}); //{ atreides: 'ladnaCa', corinno: 'anaiKit' }
scramble(['Atreides', 'Harkonnen', 'Corrino', 'Ginaz']); // [ 'oeannHnkr', 'znaGi', 'estrAedi', 'roirnoC' ]
Testing
Wordscramble boasts 100% test coverage. To verify:
npm test
Contributing
Go wild! All pull requests are welcome.
License
The code is available under the MIT license.
FAQ
Why?
Okay...
Yeah, look. Like, it was my birthday this weekend and I was gifted a bottle of whiskey. First I drank the whiskey and then I wrote this.
What's with all the Dune references?
I'm an unasahmed fanboy.
TODO
- Add cryptographically-secure random number generation.