{"_id":"hof-util-testdata","_rev":"59-2e6e10dbaf5f9fcd7dc5e3abd95c5753","name":"hof-util-testdata","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"hof-util-testdata","version":"1.0.0","author":"","license":"MIT","_id":"hof-util-testdata@1.0.0","maintainers":[{"name":"lennym","email":"leonard.martin@gmail.com"}],"homepage":"https://github.com/UKHomeOfficeForms/hof-util-testdata#readme","bugs":{"url":"https://github.com/UKHomeOfficeForms/hof-util-testdata/issues"},"dist":{"shasum":"0846bad820f3dc437cd457b14d00a26243b52890","tarball":"https://registry.npmjs.org/hof-util-testdata/-/hof-util-testdata-1.0.0.tgz","integrity":"sha512-u7fcQo033ln9XpC/SKfMiJTyyPCgxwyTghx3qghyf6h4n3YoI9J3Es22jkfKt2yAGk7uOrtgsc/vHetdWgkIog==","signatures":[{"sig":"MEUCIFOscbS8cUxfNBvF7i5lpYuyZl4YAkxR+l7qamHwrtpoAiEAiOBtZ8vxPjJ1lB/6koApC7bdpjv2weAv4H3GHP8lrLs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"0846bad820f3dc437cd457b14d00a26243b52890","gitHead":"32523a705618e28e478cd5d37da66879f21dc670","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"lennym","email":"leonard.martin@gmail.com"},"repository":{"url":"git+https://github.com/UKHomeOfficeForms/hof-util-testdata.git","type":"git"},"_npmVersion":"4.1.2","description":"Generator for test fixtures","directories":{},"_nodeVersion":"6.9.4","dependencies":{"homeoffice-countries":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/hof-util-testdata-1.0.0.tgz_1488195752778_0.6757851322181523","host":"packages-18-east.internal.npmjs.com"}},"1.0.1":{"name":"hof-util-testdata","version":"1.0.1","author":"","license":"MIT","_id":"hof-util-testdata@1.0.1","maintainers":[{"name":"lennym","email":"leonard.martin@gmail.com"}],"homepage":"https://github.com/UKHomeOfficeForms/hof-util-testdata#readme","bugs":{"url":"https://github.com/UKHomeOfficeForms/hof-util-testdata/issues"},"dist":{"shasum":"dc2953f6fdf0416d6f53387c34f40865f7f29484","tarball":"https://registry.npmjs.org/hof-util-testdata/-/hof-util-testdata-1.0.1.tgz","integrity":"sha512-HZTKtSp38CzTkmbnCUJskQk3CSCYMaOkT9a/8Hwv9UhhJH0+Jrp1aPnVkBRIPUbjfqHDrkiwBewAmxK8twcMTQ==","signatures":[{"sig":"MEUCIE/pA5rFUMql/nv8jDkizxRUBGkfwNM9R3kqzoSRV09EAiEAq8B3Z2BoViFYx0BGYhbIwyTosYVj41gEWpcENnuUViY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"dc2953f6fdf0416d6f53387c34f40865f7f29484","gitHead":"8c3716cae77e07c54c3e09d60bf447df4141ecbe","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"lennym","email":"leonard.martin@gmail.com"},"repository":{"url":"git+https://github.com/UKHomeOfficeForms/hof-util-testdata.git","type":"git"},"_npmVersion":"4.1.2","description":"Generator for test fixtures","directories":{},"_nodeVersion":"6.9.4","dependencies":{"homeoffice-countries":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/hof-util-testdata-1.0.1.tgz_1489064465521_0.9623219207860529","host":"packages-18-east.internal.npmjs.com"}}},"time":{"created":"2017-02-27T11:42:33.486Z","modified":"2026-09-21T15:12:56.696Z","1.0.0":"2017-02-27T11:42:33.486Z","1.0.1":"2017-03-09T13:01:06.202Z"},"bugs":{"url":"https://github.com/UKHomeOfficeForms/hof-util-testdata/issues"},"license":"MIT","homepage":"https://github.com/UKHomeOfficeForms/hof-util-testdata#readme","repository":{"url":"git+https://github.com/UKHomeOfficeForms/hof-util-testdata.git","type":"git"},"description":"Generator for test fixtures","maintainers":[{"email":"aaron.russell@digital.homeoffice.gov.uk","name":"aaronrussellho"},{"email":"sas-hof-test@digital.homeoffice.gov.uk","name":"hof-bot-user"},{"email":"dk4g.blob@gmail.com","name":"dk4g"},{"email":"gregory.wolverson@digital.homeoffice.gov.uk","name":"greg_wolverson_ho"},{"email":"vinodha.samiyappan@digital.homeoffice.gov.uk","name":"vinodha.s"},{"email":"megan.john@digital.homeoffice.gov.uk","name":"meganjohn"},{"email":"nese.zorba@digital.homeoffice.gov.uk","name":"nzorba"},{"email":"rayhannur.rohman@digital.homeoffice.gov.uk","name":"rayhannurrohmanho"},{"email":"vivek.kumar1@digital.homeoffice.gov.uk","name":"vivekkumar-ho"},{"email":"leonard.martin@gmail.com","name":"lennym"}],"readme":"# hof-util-testdata\nGenerator for test fixtures\n\n## Usage\n\nThe library contains a number of generators for values of certain types. Values are generators on accessing the type property.\n\n### Example:\n\n```js\nconst TestData = require('hof-util-testdata');\n\nconsole.log(TestData.name);\n// \"David Fletcher\"\n\nconsole.log(TestData.name);\n// \"Irene O'Grady\"\n```\n\n## Available generators\n\n* `firstname`\n* `lastname`\n* `name`\n* `email`\n* `phone`\n* `streetname`\n* `streetsuffix`\n* `address` - `${number(1,100)} ${streetname} ${streetsuffix}`\n* `postcode`\n* `country` - a random country from [homeoffice-countries](npmjs.com/homeoffice-countries)\n\n## Functions\n\n* `number(min, max)` - returns an integer between `min` and `max`\n* `number(max)` - returns an integer between 0 and `max`\n* `number()` - returns an integer between 0 and 100\n","readmeFilename":"README.md"}