pick-item
Version:
Given an array, pick a random element and return it.
55 lines (54 loc) • 1.25 kB
JSON
{
"name": "pick-item",
"version": "1.0.4",
"description": "Given an array, pick a random element and return it.",
"main": "index.js",
"scripts": {
"lint": "jshint index.js",
"pretest": "npm run lint",
"test": "mocha -R spec",
"test:cov": "rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec",
"test:rpt": "npm run test:cov && coveralls < ./test/coverage/lcov.info",
"prepublish": "npm test"
},
"keywords": [
"pick",
"sampling",
"item",
"array",
"array-like",
"generator",
"generate",
"random",
"randomly",
"randomize",
"chance",
"test",
"dice",
"mock"
],
"license": "MIT",
"author": {
"name": "bubkoo",
"email": "bubkoo.wy@gmail.com"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mock-end/pick-item.git"
},
"bugs": {
"url": "https://github.com/mock-end/pick-item/issues"
},
"homepage": "https://github.com/mock-end/pick-item#readme",
"devDependencies": {
"jshint": "^2.9.1",
"chai": "^3.5.0",
"coveralls": "^2.11.9",
"istanbul": "^0.4.2",
"mocha": "^2.4.5"
},
"dependencies": {
"is-array-like": "^1.1.0",
"random-index": "^1.0.4"
}
}