UNPKG

pick-prop

Version:

Given an object, pick a random property and return it.

53 lines (52 loc) 1.21 kB
{ "name": "pick-prop", "version": "1.0.3", "description": "Given an object, pick a random property 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", "property", "value", "object", "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-prop.git" }, "bugs": { "url": "https://github.com/mock-end/pick-prop/issues" }, "homepage": "https://github.com/mock-end/pick-prop#readme", "devDependencies": { "jshint": "^2.9.1", "chai": "^3.5.0", "coveralls": "^2.11.9", "istanbul": "^0.4.2", "mocha": "^2.4.5" }, "dependencies": { "is-object": "^1.0.1", "pick-key": "^1.0.3" } }