{"_id":"moore","_rev":"10-1a7483c9f443efd26e8124a338336897","name":"moore","description":"Generates Moore neighborhoods of any range/dimension","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"moore","version":"0.0.1","description":"Generates Moore neighborhoods of any range/dimension","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/hughsk/moore.git"},"keywords":["moore","neighborhoods","adjacent","cell","table","grid"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com/"},"license":"MIT","_id":"moore@0.0.1","dist":{"shasum":"8fb433eee189bbb6ca2db44f0ba2c75a1cf8970f","tarball":"https://registry.npmjs.org/moore/-/moore-0.0.1.tgz","integrity":"sha512-QW0pM8Kmguyjnlz3NN/7jAHnt5NaSm1C0D3nSWOXIz/kBggnSDq+VW7+Vw1dat0olmSEQ2U/E2UqBZIoXeSD1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDZyyAccgNDHUJ60w20kX2AkLEghT+J3py//eWJaYHN8AiEAyO1uQi/heeNAtq0FW7aYSbEZp6OkJwTZjQcQGRBVyX8="}]},"_npmVersion":"1.1.71","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}]},"0.0.2":{"name":"moore","version":"0.0.2","description":"Generates Moore neighborhoods of any range/dimension","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/hughsk/moore.git"},"keywords":["moore","neighborhoods","adjacent","cell","table","grid"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com/"},"license":"MIT","devDependencies":{"tape":"~1.0.4"},"_id":"moore@0.0.2","dist":{"shasum":"c872e7cb3efd37aa2c538688602304e3ee74e8a7","tarball":"https://registry.npmjs.org/moore/-/moore-0.0.2.tgz","integrity":"sha512-FynI61ojeWEjehhppC11h2RA6nDbAmKPSBpoz3mAdKKIx+lSFjD7HQMK6VVzMMneDhbcYMHNx/lgLPaSFp36AQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAN/dkrL+7f6YhT2NiwvDR/uN+DyI3O5hS/qJAxdCnFaAiEAtZDkBa0pKfY6hc03L+NFIToox9NGJfER7UcDE2I1cZ0="}]},"_npmVersion":"1.1.71","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}]},"1.0.0":{"name":"moore","version":"1.0.0","description":"Generates Moore neighborhoods of any range/dimension","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/hughsk/moore.git"},"keywords":["moore","neighborhoods","adjacent","cell","table","grid"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com/"},"license":"MIT","devDependencies":{"tape":"~1.0.4"},"gitHead":"4dddc21ad93c4c3e6b116d06807167aa9be71d1a","bugs":{"url":"https://github.com/hughsk/moore/issues"},"homepage":"https://github.com/hughsk/moore#readme","_id":"moore@1.0.0","_shasum":"1d2b298c32cfd330db0fe81a0b5bac319fd9eb65","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"dist":{"shasum":"1d2b298c32cfd330db0fe81a0b5bac319fd9eb65","tarball":"https://registry.npmjs.org/moore/-/moore-1.0.0.tgz","integrity":"sha512-xcsFo/jgtMuVaGePHod5TdSzxnRAQQ4wFpDmFuu34lHvx5sNMsioA84NW7iBWYZ10jHR/nyGaDkhunMJxqAzkw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAcvqZTZ9HyVnF4oQTOSUG7uo4Z0ngJTd9WUUNQKz2AtAiEA8Z+6/ommGn6iQKlvZq+/6leIWtSv5P9m4yW5LE04jhY="}]},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moore-1.0.0.tgz_1498010865818_0.5708403247408569"}}},"readme":"# moore\n\nA little module for generating Moore neighborhoods (i.e. the surrounding cells\nof a single cell in a grid) of arbitrary range and dimensions. Or, the blue\nsquares for a red square:\n\n[![moore](http://i.imgur.com/BEA7pxu.jpg)](http://www.dis.anl.gov/news/HydrogenTransitionModeling.html)\n\n## Installation ##\n\n``` bash\nnpm install moore\n```\n\n## Usage ##\n\n### `require('moore')(range, dimensions)` ###\n\nTakes two arguments, returning an array of relative coordinates.\n\n* `range` determines how large the neighborhood extends, and defaults to 1.\n* `dimensions` determines how many dimensions the Moore neighborhood\n  covers - i.e. 2 will return the results for a 2D grid, and 3 will return the\n  results for a 3D grid. May be any value above zero.\n\n``` javascript\nvar moore = require('moore')\n\n// 2D, 1 range:\nmoore(1, 2) === [\n  [-1,-1], [ 0,-1], [ 1,-1],\n  [-1, 0],          [ 1, 0],\n  [-1, 1], [ 0, 1], [ 1, 1],\n]\n```\n","maintainers":[{"email":"semibran+npm@gmail.com","name":"semibran"},{"email":"hughskennedy@gmail.com","name":"hughsk"}],"time":{"modified":"2022-06-20T09:11:17.081Z","created":"2013-06-19T04:14:39.810Z","0.0.1":"2013-06-19T04:14:43.200Z","0.0.2":"2013-06-19T04:17:06.162Z","1.0.0":"2017-06-21T02:07:45.957Z"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com/"},"repository":{"type":"git","url":"git://github.com/hughsk/moore.git"},"users":{"pankao_it":true},"homepage":"https://github.com/hughsk/moore#readme","keywords":["moore","neighborhoods","adjacent","cell","table","grid"],"bugs":{"url":"https://github.com/hughsk/moore/issues"},"license":"MIT","readmeFilename":"README.md"}