{"_id":"@chancejs/character","name":"@chancejs/character","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@chancejs/character","version":"1.0.0","description":"Generate a random character with Chance.js.","homepage":"https://chancejs.com/basics/character.html","author":{"name":"Victor Quinn","email":"mail@victorquinn.com"},"main":"./lib/cjs/index.js","module":"./lib/esm/index.js","scripts":{"clean":"rm -rf ./node_modules ./lib ./coverage","lint":"eslint","test":"jest","coverage":"yarn test --coverage","tsc":"tsc -p tsconfig.json && tsc -p tsconfig-cjs.json","prepublish":"yarn build","build":"yarn clean && yarn tsc","prepare":"yarn build"},"repository":{"type":"git","url":"git+https://github.com/chancejs/chancejs.git"},"license":"MIT","bugs":{"url":"https://github.com/chancejs/chancejs/issues"},"devDependencies":{"@types/jest":"^27.4.1","@types/node":"^18.7.2","eslint":"^8.14.0","jest":"^27.5.1","ts-jest":"^27.1.4","ts-node":"^10.7.0","typescript":"^4.6.3"},"dependencies":{"@chancejs/generator":"1.0.0","@chancejs/natural":"1.0.0"},"types":"./lib/cjs/index.d.ts","gitHead":"06566eaa2bc1406f63f76a932eb8794c97788451","_id":"@chancejs/character@1.0.0","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-uRnAs3d60hZbLycQ1u4SMJbrT95kyDNdi+GI5gDN20LCGTJChYWRn6Ctu+TmVtR04pNNQQZgsU4tptJSpw7Zkg==","shasum":"495ec76eac3e0ae57db951b0e7790a792d604192","tarball":"https://registry.npmjs.org/@chancejs/character/-/character-1.0.0.tgz","fileCount":21,"unpackedSize":12649,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC+kz26dCmIZBanG+R2ZaEUA6KZVLc2bIGJPSPhT+a9BAiEAhIJPt4oKxwlQ4xyTMVaL6K/oGA+LjK9KbczXiMyuVf4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6+phACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolBg//SIBro0hD7VEI0aDlebWLRVlC9vDDDGJrONTxVBieXwhka+wd\r\nG8TWbxAT12adtIykOgc+I+fwfUP+A2gjUHJeqcx3dcxkRvZmsx6w6r3MChdB\r\nxerC9A+lgosPHiAxBNZPYLi7No7n7S+ajEMe2AqT44sklPW3dhfyA299LTuO\r\nCUphH+6hYTqqMORW+AK21vP9qvf6n0KDsl1YlMC1bnazHJDYH58UJiE2gZhQ\r\nAjwTUUCeGUyrfyl9DKL2Hwtv80PZCAt6lv5/jYCzkOlzCeLuw5LpJcQa+wwr\r\nCBLv3vdkNUhP4QncEoe0ZuL5FYr9bgEvU4QSrAgStnY3prVa3ngCrEFcRe07\r\nxQxQDcDEkO1tyLLoDGumMcRlyUNfw/e5Be4e1Pi3R7FDfoXJJAe+RgmnN/Ex\r\nre9had76YGyhzX3Zk+gHopjWTPXAi46mxg/jYJWDEeF1pPNG0UR6P0c6UL7E\r\ntQsplnixE1pz1CRsTuX+9kdzV7BZ+fjX4brFI0NZM0HsfbU5ZFTXxo+er9cg\r\n0U1I+zFYU7rbbktKv+VuuEyh0p68lDOPOKFXeMXPKgSg1xkcyE56/oTfeQAG\r\n0FyCAyvBAwrKqfyfDVLW5TvvWXOG23Y8QAO+aQasslYGXR4iYvWZGx1GV+nD\r\n6L24JG9h9jMumi1g1sRpzQ/ObkzcXeNdNFY=\r\n=8tWJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"victorquinn","email":"mail@victorquinn.com"},"directories":{},"maintainers":[{"name":"victorquinn","email":"mail@victorquinn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/character_1.0.0_1676405345435_0.5103343283365662"},"_hasShrinkwrap":false}},"time":{"created":"2023-02-14T20:09:05.365Z","1.0.0":"2023-02-14T20:09:05.618Z","modified":"2023-02-14T20:09:06.007Z"},"maintainers":[{"name":"victorquinn","email":"mail@victorquinn.com"}],"description":"Generate a random character with Chance.js.","homepage":"https://chancejs.com/basics/character.html","repository":{"type":"git","url":"git+https://github.com/chancejs/chancejs.git"},"author":{"name":"Victor Quinn","email":"mail@victorquinn.com"},"bugs":{"url":"https://github.com/chancejs/chancejs/issues"},"license":"MIT","readme":"# character\n\n```js\n// usages\nchance.character()\nchance.character({ pool: 'abcde' })\nchance.character({ alpha: true })\nchance.character({ numeric: true })\nchance.character({ casing: 'lower' })\nchance.character({ symbols: true })\n```\n\nReturn a random character.\n\n```js\nchance.character();\n=> 'v'\n```\n\nBy default it will return a string with random character from the following\npool.\n\n```js\n'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()'\n```\n\nOptionally specify a pool and the character will be generated with characters\nonly from that pool.\n\n```js\nchance.character({ pool: 'abcde' });\n=> 'c'\n```\n\nOptionally specify alpha for an alphabetic character.\n\n```js\nchance.character({ alpha: true });\n=> 'N'\n```\n\nOptionally specify numeric for a numeric character.\n\n```js\nchance.character({ numeric: true });\n=> '8'\n```\n\nDefault includes both upper and lower case. It's possible to specify one or the\nother.\n\n```js\nchance.character({ casing: 'lower' });\n=> 'j'\n```\n\n*Note, wanted to call this key just ```case``` but unfortunately that's a\nreserved word in JavaScript for use in a switch statement*\n\nOptionally return only symbols\n\n```js\nchance.character({ symbols: true });\n=> '%'\n```\n","readmeFilename":"README.md"}