{"versions":{"0.1.0":{"name":"@freearhey/search-js","version":"0.1.0","description":"A tool for searching elements in JavaScript arrays","main":"src/index.js","scripts":{"lint":"npx eslint ./src/**/*.js","test":"npx jest"},"keywords":["search"],"author":{"name":"Arhey"},"license":"MIT","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git://github.com/freearhey/search-js.git"},"engines":{"node":">=16.0.0"},"jest":{"testEnvironment":"node"},"devDependencies":{"@babel/core":"latest","@babel/preset-env":"latest","babel-jest":"latest","eslint":"latest","jest":"latest"},"dependencies":{"lodash":"^4.17.21"},"bugs":{"url":"https://github.com/freearhey/search-js/issues"},"homepage":"https://github.com/freearhey/search-js#readme","gitHead":"16a9c436d5a3d1f970165c55c5047f29dd1e6951","_id":"@freearhey/search-js@0.1.0","_nodeVersion":"16.16.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-xcHe2WDKGaSTUzQ+E7W6UX4kfIVMeAGJU5MghoXE3o9asYRnG1WXyfUyLjczHqfrgzUJyGh22wYEgwGGpPgk1w==","shasum":"867c981b82b5f49b715dc742319ca85c1cc6aff4","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@freearhey/search-js/-/search-js-0.1.0.tgz","fileCount":7,"unpackedSize":8460,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCehy6CnVR2TcsE1pqLzkaZ7Wf/c2SX548Ja4RKpTMmLQIgJFKt7RxY7oU+No8sRtXMOyfeDq9YONHTdZd0lFfoI84="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/f/HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVJw/+OIByv1vF46lAGrkf0C0imd5gPaNEs5Ns7c1D3wvcKAc5YW2O\r\n1FwsyMEldz9HFL/3EjlhWT9fr0/zL4K57+qtwJgpm+oGrm1ORoz2VhDapq8H\r\np0ajN1xvDnhwSIVwpAR/UC96wEJThigtztfXwrUloid6fz/1abMnoWDz/86p\r\nQBAL7MU8Cd6YQW+vjsBXZtaXo1G/RYVJUpaeQ7PEz+pOVH36jbTMndUwwWS6\r\n6YzRhz2goDbLr6pC5Df1ervd2pHDkzqNM9gsci86el/btQ4+fY2hcp16v0ay\r\n4+9Sl4/HXN3nDvZXQBQ73TcUJ3c+/fQCmKn+nRt11dDEhlbg5UyKy0XazizB\r\nKh+EKYiAWj+OxND7b2FR3qH1aA0RDAFuHn7TfzEpowde0MTxMopU/zlPwzw7\r\ncBdN/dnu0H7otOeOsZolPVNtntMN3H/tUdaxqniCWd85viG+89uwAPYcLWuc\r\n2wpeZCirU+2MhHMlNR2lmY7+IyoPYsyliX54JFi3v/sMsWpTFk45Eonj0wxr\r\nSvCU5U1ujsbY376yQnjvknE0NsZW9CE7CWiNHdlIQIYOZ5nvRSeY9/3PYBPe\r\nYwlOAoMxM+HjUG6/3KRCPHKPEvWwpn4YDsdqd/w9u7KW5mhjLfJhcXPXkhHy\r\nwr3Y70AzR77tubCi6OU+qYW5SJmDeA8gMNw=\r\n=PS3U\r\n-----END PGP SIGNATURE-----\r\n","size":3283},"_npmUser":{"name":"anonymous","email":"npmjs@oiya.xyz"},"directories":{},"maintainers":[{"name":"anonymous","email":"npmjs@oiya.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/search-js_0.1.0_1677590471225_0.6367757825676708"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-28T13:21:11.379Z","publish_time":1677590471379,"contributors":[]},"0.1.1":{"name":"@freearhey/search-js","version":"0.1.1","description":"A tool for searching elements in JavaScript arrays","main":"src/index.js","scripts":{"lint":"npx eslint ./src/**/*.js","test":"npx jest"},"keywords":["search"],"author":{"name":"Arhey"},"license":"MIT","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git://github.com/freearhey/search-js.git"},"engines":{"node":">=16.0.0"},"jest":{"testEnvironment":"node"},"devDependencies":{"@babel/core":"latest","@babel/preset-env":"latest","babel-jest":"latest","eslint":"latest","jest":"latest"},"dependencies":{"lodash":"^4.17.21"},"bugs":{"url":"https://github.com/freearhey/search-js/issues"},"homepage":"https://github.com/freearhey/search-js#readme","gitHead":"2b59c58e10705cf82cbf6dee33d1ff41ebd046b2","_id":"@freearhey/search-js@0.1.1","_nodeVersion":"16.16.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-nmXhqBg5lh6GxMT2g1hgmSc/pbXGw0P4ZxXaPt/cnuZYtvPHSo0CPOF65iNC9LEqvrrnLig4RFlG1dBDPNAU0g==","shasum":"9feb0efde1ed4ccf7370a3cd257826407f72b397","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@freearhey/search-js/-/search-js-0.1.1.tgz","fileCount":7,"unpackedSize":8458,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCxDyjcEjY7vp5a0PJX5+NMhSi6O0IqAYq0hLKCBjlRwIhALF1ARJcVvqNvKOo5EGCHq/bpaSmcCqzKBcYh/p1h5dF"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/hepACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqtag/9Fvq0KzOfnqD7u/w2NSih63hq0XtbIh4iYaM8EB3rBeQ3Is/z\r\n9qDbgfh5tl3nLIGO24yVBYZAUfsUTdPZR6wnVzbgqrXxxn/pJ3n1fprKW0QJ\r\n9clEe9ZdH2vFF18Lm+MZDjAzlxN6m8uO363aFgKrk+b5KPvIp8NCrqyQq2TS\r\nZnLiG9MKNvzmMNDHMfFgMeFZ2ADDFcs9VU4tcKGXx/yVlcfezpmf4HoNw3JS\r\nwlJHgxg/0InFYQG65hljjGRHkAYp8O2lPLmNTCNMokLJMggNTeqiJxJE67f0\r\nUu8hvxf8G350b1GxCDoeblVpD5wXb7qoKHFSxdz+ZgPxM5CwBSf+MdwgH1Na\r\nTaWgdPEQK8p7+Syr9hESE3y0umHsXposcF2w9sXJmVJg9YrKZ3XFolMLbX/w\r\nSgM7nu6fgr20LuN9+obAO9W1sXpF9j/OeiWGa3jN3+NeQ0EfLZmcND0oESLl\r\nQY7khBfQ/Jjg4jE5soXA1qQF4b59vzwABoOHlK96d6iSsD9d2lWjv5X7yCBa\r\n90oyr5uo25wcoN/RyYR1o3UFl292yi2yi44w8efTiBFsPuGgEB4wDYJVey/O\r\nNo1ijD3paXnnMax5MAOU5wEHsUSCNqY3jcd2+iiDjs3Zot170x8mIUHEhaIK\r\nTWkvaHBFov69gpLbkZPhaCUeyUfhtmFr2Hk=\r\n=qZKA\r\n-----END PGP SIGNATURE-----\r\n","size":3279},"_npmUser":{"name":"anonymous","email":"npmjs@oiya.xyz"},"directories":{},"maintainers":[{"name":"anonymous","email":"npmjs@oiya.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/search-js_0.1.1_1677596585744_0.2957914180273482"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-28T15:03:05.930Z","publish_time":1677596585930,"contributors":[]},"0.1.2":{"name":"@freearhey/search-js","version":"0.1.2","description":"A tool for searching elements in JavaScript arrays","main":"src/index.js","scripts":{"lint":"npx eslint ./src/**/*.js","test":"npx jest"},"keywords":["search"],"author":{"name":"Arhey"},"license":"MIT","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git://github.com/freearhey/search-js.git"},"engines":{"node":">=16.0.0"},"jest":{"testEnvironment":"node"},"devDependencies":{"@babel/core":"latest","@babel/preset-env":"latest","babel-jest":"latest","eslint":"latest","jest":"latest"},"dependencies":{"lodash":"^4.17.21"},"bugs":{"url":"https://github.com/freearhey/search-js/issues"},"homepage":"https://github.com/freearhey/search-js#readme","_id":"@freearhey/search-js@0.1.2","gitHead":"6eb1f272026331413ea96135a4ace9a2f8ee6f07","_nodeVersion":"22.12.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-F2o+xpGCXOK4OsZfKEHfXNNkAZmny2eBnPOp+P0iyV20ja7gJGfTFaEc6okcuEo6OB6P7LnSxTvISkoArFtlfg==","shasum":"276adab5a073897cfa835c4531ef517b3fbf82a5","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@freearhey/search-js/-/search-js-0.1.2.tgz","fileCount":7,"unpackedSize":9351,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFG9xdbVAZe4diV3geVqwdT1axLfvEhvxcDveJqKpk0DAiBkTYu7m1d3h5QH/7GC2J/f4GjinDW1lKY7cTAzn2e3ZQ=="}],"size":3497},"_npmUser":{"name":"anonymous","email":"free.arhey@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"free.arhey@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/search-js_0.1.2_1741483061871_0.6560702944064161"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-09T01:17:42.061Z","publish_time":1741483062061,"_source_registry_name":"default","contributors":[]},"0.2.0":{"name":"@freearhey/search-js","version":"0.2.0","description":"A tool for searching elements in JavaScript arrays","main":"src/index.js","scripts":{"lint":"npx eslint ./src/**/*.js","test":"npx jest"},"keywords":["search"],"author":{"name":"Arhey"},"license":"MIT","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git://github.com/freearhey/search-js.git"},"engines":{"node":">=16.0.0"},"jest":{"testEnvironment":"node"},"devDependencies":{"@babel/core":"latest","@babel/preset-env":"latest","babel-jest":"latest","eslint":"latest","jest":"latest"},"dependencies":{"lodash":"^4.17.21"},"bugs":{"url":"https://github.com/freearhey/search-js/issues"},"homepage":"https://github.com/freearhey/search-js#readme","_id":"@freearhey/search-js@0.2.0","gitHead":"06c84f0a2643c7109a26b966d3fefe765025f304","_nodeVersion":"22.12.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-1sxfCRbxM12Js3nM/S51cVKLYEjoksERidz539bleMAXes44eTC2m0TEQTJzJyE7l1pw2qUwsIhjd2l2l88fSw==","shasum":"a0b52e95b8f66f21e32fffed4e219a1afab5b96f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@freearhey/search-js/-/search-js-0.2.0.tgz","fileCount":7,"unpackedSize":9790,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBDGfSYNvYk0htsaiIetQuZUOlMsrqhJHQiu4C+V55wvAiEAsme8REfaON7BdrEs1th6fWA/PAENtEStPsb1I/6Ao64="}],"size":3598},"_npmUser":{"name":"anonymous","email":"free.arhey@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"free.arhey@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/search-js_0.2.0_1756579075916_0.2907789677173027"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-30T18:37:56.107Z","publish_time":1756579076107,"_source_registry_name":"default","contributors":[]},"0.2.1":{"name":"@freearhey/search-js","version":"0.2.1","description":"A tool for searching elements in JavaScript arrays","main":"src/index.js","scripts":{"lint":"npx eslint ./src/**/*.js","test":"npx jest"},"keywords":["search"],"author":{"name":"Arhey"},"license":"MIT","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git://github.com/freearhey/search-js.git"},"engines":{"node":">=16.0.0"},"jest":{"testEnvironment":"node"},"devDependencies":{"@babel/core":"latest","@babel/preset-env":"latest","babel-jest":"latest","eslint":"latest","jest":"latest"},"dependencies":{"lodash":"^4.17.21"},"bugs":{"url":"https://github.com/freearhey/search-js/issues"},"homepage":"https://github.com/freearhey/search-js#readme","_id":"@freearhey/search-js@0.2.1","gitHead":"dc09f44c2d89e4633a54c3b6480e3ea4fe13ab47","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-RXVJ2AaXjnrLPpLHCOWrdgtYc4SZplYl905INFmhL6V8jcyIrX+qrjkAjwAHqWDTnJSYfSG9D9Xr+EyKx/eXng==","shasum":"d6aabb062e0dd1903ee3044e9354a77fe3ea8c94","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@freearhey/search-js/-/search-js-0.2.1.tgz","fileCount":8,"unpackedSize":10663,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCnaAztuQZMugpSM0TSb/imJdhmDcabkpkfKWqab8dlTgIgMd4IrMkFiD2TVCA/rf/6w8Dg1TMwUTLxHjj3CYmZaPo="}],"size":4003},"_npmUser":{"name":"anonymous","email":"free.arhey@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"free.arhey@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/search-js_0.2.1_1773370448085_0.715453028149059"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-13T02:54:08.228Z","publish_time":1773370448228,"_source_registry_name":"default","contributors":[]},"0.3.0":{"name":"@freearhey/search-js","version":"0.3.0","keywords":["search"],"author":{"name":"Arhey"},"license":"MIT","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git://github.com/freearhey/search-js.git"},"engines":{"node":">=16.6.0"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.mjs","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"build":"pkgroll","test":"vitest run","lint":"eslint ./src/**/*.js","prepublishOnly":"npm run build"},"devDependencies":{"@eslint/js":"^10.0.1","eslint":"^10.2.1","globals":"^17.5.0","pkgroll":"latest","typescript":"latest","vitest":"latest"},"_id":"@freearhey/search-js@0.3.0","gitHead":"8002327f776c039aa22172b6a12434713eef9ae4","description":"A tool for searching elements in JavaScript arrays.","bugs":{"url":"https://github.com/freearhey/search-js/issues"},"homepage":"https://github.com/freearhey/search-js#readme","_nodeVersion":"22.22.2","_npmVersion":"10.9.7","dist":{"integrity":"sha512-wsUBM1vA+fRqGZ+G5EnR7v52KxomoCsVOnlv43kHWt2G/LNs5pGM+aLAyx0MO/sDyBo3ADgw1h30Ydi6+1CMeQ==","shasum":"e143eeb7aa91da23a9d78af2dbd577c87cff70f8","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@freearhey/search-js/-/search-js-0.3.0.tgz","fileCount":10,"unpackedSize":18472,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC+WaCjWauuvc/7EAC8gtz/RihH1Phef30NfeDjVzy5+AIgRkJTYKl/35tK2OIJz3YhmTmBkNcFE9pOcyyLO8K41j8="}],"size":4576},"_npmUser":{"name":"anonymous","email":"free.arhey@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"free.arhey@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/search-js_0.3.0_1777471518871_0.7616478252399181"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-04-29T14:05:19.020Z","publish_time":1777471519020,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.3.0"},"name":"@freearhey/search-js","time":{"created":"2023-02-28T14:04:42.302Z","modified":"2026-04-29T14:05:38.253Z","0.1.0":"2023-02-28T13:21:11.379Z","0.1.1":"2023-02-28T15:03:05.930Z","0.1.2":"2025-03-09T01:17:42.061Z","0.2.0":"2025-08-30T18:37:56.107Z","0.2.1":"2026-03-13T02:54:08.228Z","0.3.0":"2026-04-29T14:05:19.020Z"},"readme":"# search-js\n\nA tool for searching elements in JavaScript arrays.\n\n## Installation\n\n```bash\nnpm install @freearhey/search-js\n```\n\n## Usage\n\n```js\nimport sj from '@freearhey/search-js'\n\nconst data = [\n  { name: 'Nikita', age: 24 },\n  { name: 'Jeremy', age: 13 },\n  { name: 'Jerry', age: 18 },\n  { name: 'Gwendolyn', age: 43 }\n]\n\nconst index = sj.createIndex(data)\n\nconst results = index.search('Jer')\n\nconsole.log(results)\n```\n\nOutput:\n\n```\n[\n  { name: 'Jeremy', age: 13 },\n  { name: 'Jerry', age: 18 },\n]\n```\n\n**Search syntax:**\n\n| Example             | Description                                                 |\n| ------------------- | ----------------------------------------------------------- |\n| cat                 | Finds items that have \"cat\" in their descriptions           |\n| cat dog             | Finds items that have \"cat\" AND \"dog\" in their descriptions |\n| cat,dog             | Finds items that have \"cat\" OR \"dog\" in their descriptions  |\n| bio:\"electric tape\" | Finds items that have \"electric tape\" in the bio            |\n| email:/./           | Finds items that have an email                              |\n| stars:>4            | Finds items with more than 5 stars                          |\n| stars:<2            | Finds items with less than 2 stars                          |\n\n**Options:**\n\n| Name       | Type  | Description                                                                 |\n| ---------- | ----- | --------------------------------------------------------------------------- |\n| searchable | Array | List of searchable attributes. By default, all attributes will be searched. |\n\nExample:\n\n```js\nindex.search('t', { searchable: ['lastName'] })\n```\n\n## Testing\n\n```bash\nnpm test\n```\n\n## Linting\n\n```bash\nnpm run lint\n```\n\n## Contribution\n\nIf you find a bug or want to contribute to the code or documentation, you can help by submitting an [issue](https://github.com/freearhey/search-js/issues) or a [pull request](https://github.com/freearhey/search-js/pulls).\n\n## License\n\n[MIT](LICENSE)","users":{}}