{"_id":"random-char","_rev":"7-576628bdb12a8f6d698bf65987436403","name":"random-char","description":"Return a random character.","dist-tags":{"latest":"1.0.4"},"versions":{"0.0.0":{"name":"random-char","version":"0.0.0","description":"Generate a random character.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/bubkoo/random-char.git"},"keywords":["generator","generate","random","char","character"],"author":{"name":"bubkoo"},"license":"MIT","bugs":{"url":"https://github.com/bubkoo/random-char/issues"},"homepage":"https://github.com/bubkoo/random-char#readme","gitHead":"80c5bdde13de4fed544ca62c2cd3458ced1cd6c4","_id":"random-char@0.0.0","_shasum":"9488c0a018232380153167171ea20caf7c40580c","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo@163.com"},"dist":{"shasum":"9488c0a018232380153167171ea20caf7c40580c","tarball":"https://registry.npmjs.org/random-char/-/random-char-0.0.0.tgz","integrity":"sha512-jPwFXP1zoyjBDVM0SRbFyv/HNMOPWmwUWuLkHQOAxGAO9Uhp+EA2n2HOi43AEn2/afjryRe5T1xnb1bS8zdALg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfbLIHjcwv6JFB0HYMr2Rlt97B57mZpvyI4/GmIOy64AIgEhTqJdMvaA/h4TY3guHRhkUkl8wa/57+vrEkte/5RAA="}]},"maintainers":[{"name":"bubkoo","email":"bubkoo@163.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/random-char-0.0.0.tgz_1459714306034_0.57171441311948"}},"1.0.0":{"name":"random-char","version":"1.0.0","description":"Generate a random character.","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"},"repository":{"type":"git","url":"git+https://github.com/mock-end/random-char.git"},"keywords":["generator","generate","random","randomly","rand","char","character"],"license":"MIT","author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"bugs":{"url":"https://github.com/mock-end/random-char/issues"},"homepage":"https://github.com/mock-end/random-char#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5"},"dependencies":{"random-natural":"^1.0.0"},"gitHead":"b87440b5b9c4b6968f1cee866394d0d0a9c0d6b3","_id":"random-char@1.0.0","_shasum":"a608cd4c23f0ec95eb91dfa66f98cb726cf8989c","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"a608cd4c23f0ec95eb91dfa66f98cb726cf8989c","tarball":"https://registry.npmjs.org/random-char/-/random-char-1.0.0.tgz","integrity":"sha512-awm2p6X5JrWHkhgAV1UQFU/ekpWS8qa19NVK4B6VGr3WCg5S6pTjmSZCUttGmPmis3nDdOzKX42YSnLQN7s9DA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIELBlRlbjV2bUkgFfADikmWT4+bXVKj81uHi/3r/Xax9AiEA3S++jsCeT7xn09Qv9ihx38JR2+VhMkO9Mqn9mYQsZuI="}]},"maintainers":[{"name":"bubkoo","email":"bubkoo@163.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/random-char-1.0.0.tgz_1460741797198_0.8985780251678079"}},"1.0.1":{"name":"random-char","version":"1.0.1","description":"Generate a random character.","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"},"repository":{"type":"git","url":"git+https://github.com/mock-end/random-char.git"},"keywords":["generator","generate","random","randomly","rand","char","character"],"license":"MIT","author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"bugs":{"url":"https://github.com/mock-end/random-char/issues"},"homepage":"https://github.com/mock-end/random-char#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5"},"dependencies":{"random-natural":"^1.0.0"},"gitHead":"5e583fb6811a4326bbc9cc4a08ad86f2ad1cdc4b","_id":"random-char@1.0.1","_shasum":"d4c949c837cbe8d7e3a0bf1eddce0ebac70081b6","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"d4c949c837cbe8d7e3a0bf1eddce0ebac70081b6","tarball":"https://registry.npmjs.org/random-char/-/random-char-1.0.1.tgz","integrity":"sha512-JDVUkzU3PskGkHOGI507pE+qp6dsUir0x6oQ5LQl0ySW0BGoflVqfzygFx9R8hXMS927RuEpfj+XDmWYJecEow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJ5geaQmTqZknfX+U3IKe9iR7bXjsHFggvdBYTS4RMVgIge3idPsZClE+4SBsVPzAAQP+TICylpbQesWd6vN5eBoM="}]},"maintainers":[{"name":"bubkoo","email":"bubkoo@163.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/random-char-1.0.1.tgz_1460916653229_0.5697194854728878"}},"1.0.3":{"name":"random-char","version":"1.0.3","description":"Return a random character.","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","watch":"onchange 'index.js' 'test/**/*.js' -e 'test/coverage/**/*.js' -- npm test","prepublish":"npm test"},"repository":{"type":"git","url":"git+https://github.com/mock-end/random-char.git"},"keywords":["char","character","generator","generate","random","randomly","randomize","chance","test","dice","mock"],"license":"MIT","author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"bugs":{"url":"https://github.com/mock-end/random-char/issues"},"homepage":"https://github.com/mock-end/random-char#readme","devDependencies":{"chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","jshint":"^2.9.1","mocha":"^2.4.5","onchange":"^2.4.0"},"dependencies":{"is-nil":"^1.0.1","onchange":"^2.4.0","random-natural":"^1.0.2","to-str":"^1.0.0"},"gitHead":"a51dcf4f17ef9b041e821b829daef655034232d3","_id":"random-char@1.0.3","_shasum":"ab38f255ca6c885e67b2227b5f744df8b7a18bcc","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"ab38f255ca6c885e67b2227b5f744df8b7a18bcc","tarball":"https://registry.npmjs.org/random-char/-/random-char-1.0.3.tgz","integrity":"sha512-Ml1U90YLM308HD2u4YrYkEnzszl6K7/UcU6VtJdFEBpGtlXQwmkCeT4ewNEas2annsvjaxPOt+t2J8P6sR9vyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJR3kLcXl98lCR4aiV7R4knaGLUj1t7dn0AanDgIboPAIhALzBWS97F1Zs9k7qgytc7yzEgL+GJodgRnQilGpN74pK"}]},"maintainers":[{"name":"bubkoo","email":"bubkoo@163.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/random-char-1.0.3.tgz_1461429159532_0.5140773924067616"}},"1.0.4":{"name":"random-char","version":"1.0.4","description":"Return a random character.","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","watch":"onchange 'index.js' 'test/**/*.js' -e 'test/coverage/**/*.js' -- npm test","prepublish":"npm test"},"repository":{"type":"git","url":"git+https://github.com/mock-end/random-char.git"},"keywords":["char","character","generator","generate","random","randomly","randomize","chance","test","dice","mock"],"license":"MIT","author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"bugs":{"url":"https://github.com/mock-end/random-char/issues"},"homepage":"https://github.com/mock-end/random-char#readme","devDependencies":{"chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","jshint":"^2.9.1","mocha":"^2.4.5","onchange":"^2.4.0"},"dependencies":{"is-nil":"^1.0.1","is-object":"^1.0.1","random-natural":"^1.0.3","to-str":"^1.0.0"},"gitHead":"a605264bd6807a383f78ee13099af8493e537265","_id":"random-char@1.0.4","_shasum":"5fe2c95134cafcc5d7bc8f46831dc36fdbbd5c66","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"5fe2c95134cafcc5d7bc8f46831dc36fdbbd5c66","tarball":"https://registry.npmjs.org/random-char/-/random-char-1.0.4.tgz","integrity":"sha512-kSvxo/8fIAlRJW/FB1dT3LDGADsbS+qD7AxYQJTgNDQ6w3Gumtfu+YphQGXK8ZtxKXO7mR8MqbckpBf8oywcvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuyNXqmRgIOyj9BPLKCgxQcx7Fd+os4o6D483VLdQizQIgdmbHAAZLfUgwzdiGIkReRvroY5b1mrK0sfBGcY3f9eo="}]},"maintainers":[{"name":"bubkoo","email":"bubkoo@163.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/random-char-1.0.4.tgz_1461559906315_0.1744840256869793"}}},"readme":"# random-char\n  \n> Return a random character.\n\n[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/mock-end/random-char/blob/master/LICENSE)\n\n[![build:?](https://img.shields.io/travis/mock-end/random-char/master.svg?style=flat-square)](https://travis-ci.org/mock-end/random-char)\n[![coverage:?](https://img.shields.io/coveralls/mock-end/random-char/master.svg?style=flat-square)](https://coveralls.io/github/mock-end/random-char)\n\n\n## Install\n\n```\n$ npm install --save random-char \n```\n\n## Usage\n\n> For more use-cases see the [tests](https://github.com/mock-end/random-char/blob/master/test/spec/index.js)\n\n\n```js\nvar randomChar = require('random-char');\n\n// API\n// - randomChar([poolName]);\n// - randomChar([options]);\n\nrandomChar();\n// => 'k'\n```\n\nBy default it will return a string with random character from the following pool:\n\n```\n'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789~!@#$%^&()*_+-={}[]'\n```\n\nOptionally specify a pool:\n\n```js\nrandomChar('alpha'); // or\nrandomChar({alpha: true});\n// => 'm'\n\nrandomChar('upper'); // or\nrandomChar({upper: true});\n// => 'Z'\n\nrandomChar('lower'); // or\nrandomChar({lower: true});\n// => 'j'\n\nrandomChar('number'); // or\nrandomChar({number: true});\n// => '7'\n\nrandomChar('symbols'); // or\nrandomChar({symbols: true});\n// => '%'\n```\n\nOptionally specify a pool and the character will be generated with characters only from that pool:\n\n```js\nrandomChar('abcde'); // or\nrandomChar({pool: 'abcde'});\n// => 'c'\n```\n\n## Related\n\n- [random-integral](https://github.com/mock-end/random-integral) - Return a random integer.\n- [random-natural](https://github.com/mock-end/random-natural) - Return a random natural number.\n- [random-decimal](https://github.com/mock-end/random-decimal) - Return a random decimal.\n- [random-floating](https://github.com/mock-end/random-floating) - Return a random floating point number.\n- [random-index](https://github.com/mock-end/random-index) - Return a random array-like index.\n- [random-binary](https://github.com/mock-end/random-binary) - Return a random binary number.\n- [random-octal](https://github.com/mock-end/random-octal) - Return a random octal number.\n- [random-hexadecimal](https://github.com/mock-end/random-hexadecimal) - Return a random hexadecimal number.\n- [random-unicode](https://github.com/mock-end/random-unicode) - Return a random unicode. \n- [random-bool](https://github.com/mock-end/random-bool) - Return a random boolean (true/false).\n\n\n## Contributing\n\nPull requests and stars are highly welcome.\n\nFor bugs and feature requests, please [create an issue](https://github.com/mock-end/random-char/issues/new).\n","maintainers":[{"name":"bubkoo","email":"bubkoo@163.com"}],"time":{"modified":"2022-06-25T11:17:45.839Z","created":"2016-04-03T20:11:46.574Z","0.0.0":"2016-04-03T20:11:46.574Z","1.0.0":"2016-04-15T17:36:42.926Z","1.0.1":"2016-04-17T18:10:53.655Z","1.0.3":"2016-04-23T16:32:42.723Z","1.0.4":"2016-04-25T04:51:49.727Z"},"homepage":"https://github.com/mock-end/random-char#readme","keywords":["char","character","generator","generate","random","randomly","randomize","chance","test","dice","mock"],"repository":{"type":"git","url":"git+https://github.com/mock-end/random-char.git"},"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"bugs":{"url":"https://github.com/mock-end/random-char/issues"},"license":"MIT","readmeFilename":"README.md"}