We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c28df8 commit dc6bdc8Copy full SHA for dc6bdc8
β.gitignoreβ
@@ -0,0 +1 @@
1
+node_modules/
βpackage.jsonβ
@@ -19,5 +19,8 @@
19
"bugs": {
20
"url": "https://github.com/kentcdodds/starwars-names/issues"
21
},
22
- "homepage": "https://github.com/kentcdodds/starwars-names#readme"
+ "homepage": "https://github.com/kentcdodds/starwars-names#readme",
23
+ "dependencies": {
24
+ "unique-random-array": "1.0.0"
25
+ }
26
}
βsrc/index.jsβ
@@ -0,0 +1,9 @@
+'use strict';
2
+
3
+var uniqueRandomArray = require('unique-random-array');
4
+var starWarsNames = require('./starwars-names.json');
5
6
+module.exports = {
7
+ all: starWarsNames,
8
+ random: uniqueRandomArray(starWarsNames)
9
+};
0 commit comments