Compare commits

...

18 Commits

Author SHA1 Message Date
AJ ONeal
c60dcd6828 v1.0.8 2017-10-28 22:12:27 -06:00
AJ ONeal
82f2c9065f update urls 2017-10-28 22:12:25 -06:00
AJ ONeal
813da458f9 v1.0.7 2017-10-28 22:11:16 -06:00
AJ ONeal
282952b4e5 v1.0.6 2017-10-28 22:00:33 -06:00
AJ ONeal
934ce950f0 update urls 2017-10-28 22:00:28 -06:00
AJ ONeal
faad2e1697 v1.0.5 2017-10-28 21:55:41 -06:00
AJ ONeal
6cf39d6dc0 update urls 2017-10-28 21:55:37 -06:00
AJ ONeal
124fab7c94 v1.0.4 2017-10-28 21:55:06 -06:00
AJ ONeal
d783bc493e v1.0.3 2017-10-28 21:54:23 -06:00
AJ ONeal
27f1186b2f update urls 2017-10-28 21:54:19 -06:00
AJ ONeal
9cecd855f3 v1.0.2 2017-10-28 21:51:56 -06:00
AJ ONeal
b05104798b update urls 2017-10-28 21:51:44 -06:00
AJ ONeal
6725c2f4f5 update urls 2017-10-28 21:46:54 -06:00
1249f4db3a Update 'README.md' 2017-10-29 03:43:42 +00:00
AJ ONeal
6441602cfb auto-update banner 2016-12-30 02:39:16 -07:00
AJ ONeal
d75ab95153 auto-update ad 2016-12-30 00:52:41 -07:00
AJ ONeal
e23b582738 Update README.md 2016-11-25 10:33:10 -07:00
AJ ONeal
6c04873067 Taking Back the Internet 2016-11-01 18:34:41 -06:00
3 changed files with 23 additions and 16 deletions

View File

@ -34,9 +34,8 @@ Browser Example
(function () {
'use strict';
var a = [2,11,37,42]
, b
;
var a = [2,11,37,42];
var b;
// The shuffle modifies the original array
// calling a.slice(0) creates a copy, which is assigned to b
@ -48,18 +47,25 @@ Browser Example
Node Example
===
Decentralized Install
```bash
npm install -S knuth-shuffle
npm install --save git+https://git.coolaj86.com/coolaj86/knuth-shuffle.js.git#v1.0
```
Centralized Install
```bash
npm install --save knuth-shuffle@1.0
```
```javascript
(function () {
'use strict';
var shuffle = require('knuth-shuffle').knuthShuffle
, a = [2,11,37,42]
, b
;
var shuffle = require('knuth-shuffle').knuthShuffle;
var a = [2,11,37,42];
var b;
// The shuffle modifies the original array
// calling a.slice(0) creates a copy, which is assigned to b

View File

@ -1,10 +1,10 @@
{
"name": "knuth-shuffle",
"version": "1.0.0",
"version": "1.0.8",
"main": "index.js",
"ignore": [
".jshintrc"
, "package.json"
".jshintrc",
"package.json"
],
"dependencies": {},
"devDependencies": {}

View File

@ -1,14 +1,15 @@
{
"name": "knuth-shuffle",
"version": "1.0.1",
"version": "1.0.8",
"description": "The Fisher-Yates (aka Knuth) shuffle for Browser and Node.js",
"main": "index.js",
"homepage": "https://git.coolaj86.com/coolaj86/knuth-shuffle.js",
"scripts": {
"test": "node example.js"
},
"repository": {
"type": "git",
"url": "git://github.com/coolaj86/knuth-shuffle.git"
"url": "git://git.coolaj86.com:coolaj86/knuth-shuffle.js.git"
},
"keywords": [
"ronald",
@ -24,9 +25,9 @@
"unbiased",
"algorithm"
],
"author": "AJ ONeal <coolaj86@gmail.com> (http://coolaj86.info/)",
"license": "Apache2",
"author": "AJ ONeal <coolaj86@gmail.com> (https://coolaj86.com/)",
"license": "(MIT OR Apache-2.0)",
"bugs": {
"url": "https://github.com/coolaj86/knuth-shuffle/issues"
"url": "https://git.coolaj86.com/coolaj86/knuth-shuffle/issues"
}
}