{"_id":"@alikia/search-complete","name":"@alikia/search-complete","dist-tags":{"latest":"0.4.4"},"versions":{"0.4.4":{"name":"@alikia/search-complete","version":"0.4.4","description":"Major search engine's autocomplete / query recommendation","private":false,"type":"module","main":"lib/index.js","types":"lib/index.d.ts","author":{"name":"alikia2x","email":"alikia2x@outlook.com","url":"https://alikia2x.com"},"keywords":["google","search","suggestion","query","autocomplete"],"repository":{"type":"git","url":"git+https://github.com/alikia2x/search-engine-autocomplete.git"},"directories":{"lib":"lib"},"license":"MIT","bugs":{"url":"https://github.com/alikia2x/search-engine-autocomplete/issues"},"homepage":"https://github.com/alikia2x/search-engine-autocomplete#readme","_id":"@alikia/search-complete@0.4.4","gitHead":"ed2f487139f0062728934349a179b3d65719d543","_nodeVersion":"22.4.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-soYI8O9kW1JDDL3ap1zQokiukEuBKF2Bn5/eLecTAkA4FtdSyhqTdLA9ocixwCNpYq2IfMGXjVhZnWlTTT7R+A==","shasum":"e6d809c52effb7ae9bd3c58746141b31b4fc72d0","tarball":"https://registry.npmjs.org/@alikia/search-complete/-/search-complete-0.4.4.tgz","fileCount":5,"unpackedSize":7069,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDtsJMfE6Laum76/5mgmTf795d9PwBrrTOFQsuHUlMaFAiEA+ZeMfqcyj4f4JEwBC4WLTcoYdYuGVmwLclTHHtDTeGY="}]},"_npmUser":{"name":"alikia2x","email":"ziwen243@outlook.com"},"maintainers":[{"name":"alikia2x","email":"ziwen243@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/search-complete_0.4.4_1723183111679_0.2858012417204372"},"_hasShrinkwrap":false}},"time":{"created":"2024-08-09T05:58:31.539Z","0.4.4":"2024-08-09T05:58:31.844Z","modified":"2024-08-09T05:58:32.150Z"},"maintainers":[{"name":"alikia2x","email":"ziwen243@outlook.com"}],"description":"Major search engine's autocomplete / query recommendation","homepage":"https://github.com/alikia2x/search-engine-autocomplete#readme","keywords":["google","search","suggestion","query","autocomplete"],"repository":{"type":"git","url":"git+https://github.com/alikia2x/search-engine-autocomplete.git"},"author":{"name":"alikia2x","email":"alikia2x@outlook.com","url":"https://alikia2x.com"},"bugs":{"url":"https://github.com/alikia2x/search-engine-autocomplete/issues"},"license":"MIT","readme":"# search-engine-autocomplete\n\nThis is a package for fetching major search engine's autocomplete / query recommendation.\n\nForked from [capablemonkey/google-autocomplete](https://github.com/capablemonkey/google-autocomplete),\nrewrite with [typescript](https://www.typescriptlang.org/), using modern JS features, with zero dependencies.\n\n## Getting Started\n\nInstall:\n\n`npm i search-engine-autocomplete`\n\n`yarn add search-engine-autocomplete`\n\n`pnpm add search-engine-autocomplete`\n\n`bun i search-engine-autocomplete`\n\nAnd using with:\n\n```typescript\nimport { completeGoogle } from \"search-engine-autocomplete\";\n// if language not provided, default is \"en-US\"\nconst data = await completeGoogle(\"javascript round\", \"en-US\");\n```\n\n`data`:\n\n```JSON\n{\n  \"query\": \"javascript round\",\n  \"suggestions\": [\n    {\n      \"suggestion\": \"javascript round to two decimal places\",\n      \"relativeRelevance\": 0.96308,\n      \"relevance\": 1252,\n      \"type\": \"QUERY\"\n    },\n    {\n      \"suggestion\": \"javascript round to integer\",\n      \"relativeRelevance\": 0.96231,\n      \"relevance\": 1251,\n      \"type\": \"QUERY\"\n    },\n    {\n      \"suggestion\": \"javascript round to 2 decimal places\",\n      \"relativeRelevance\": 0.96154,\n      \"relevance\": 1250,\n      \"type\": \"QUERY\"\n    },\n    {\n      \"suggestion\": \"javascript round up\",\n      \"relativeRelevance\": 0.61538,\n      \"relevance\": 800,\n      \"type\": \"QUERY\"\n    },\n    {\n      \"suggestion\": \"javascript round to 1 decimal\",\n      \"relativeRelevance\": 0.53846,\n      \"relevance\": 700,\n      \"type\": \"QUERY\"\n    },\n    {\n      \"suggestion\": \"javascript round down\",\n      \"relativeRelevance\": 0.46231,\n      \"relevance\": 601,\n      \"type\": \"QUERY\"\n    },\n    {\n      \"suggestion\": \"javascript round function\",\n      \"relativeRelevance\": 0.46154,\n      \"relevance\": 600,\n      \"type\": \"QUERY\"\n    },\n    {\n      \"suggestion\": \"javascript round float\",\n      \"relativeRelevance\": 0.42846,\n      \"relevance\": 557,\n      \"type\": \"QUERY\"\n    },\n    {\n      \"suggestion\": \"javascript round to nearest 5\",\n      \"relativeRelevance\": 0.42769,\n      \"relevance\": 556,\n      \"type\": \"QUERY\"\n    },\n    {\n      \"suggestion\": \"javascript round up to whole number\",\n      \"relativeRelevance\": 0.42692,\n      \"relevance\": 555,\n      \"type\": \"QUERY\"\n    },\n    {\n      \"suggestion\": \"javascript round to 3 decimal places\",\n      \"relativeRelevance\": 0.42615,\n      \"relevance\": 554,\n      \"type\": \"QUERY\"\n    },\n    {\n      \"suggestion\": \"javascript round to 4 decimal places\",\n      \"relativeRelevance\": 0.42538,\n      \"relevance\": 553,\n      \"type\": \"QUERY\"\n    },\n    {\n      \"suggestion\": \"javascript round to nearest 10\",\n      \"relativeRelevance\": 0.42462,\n      \"relevance\": 552,\n      \"type\": \"QUERY\"\n    },\n    {\n      \"suggestion\": \"javascript round decimals\",\n      \"relativeRelevance\": 0.42385,\n      \"relevance\": 551,\n      \"type\": \"QUERY\"\n    },\n    {\n      \"suggestion\": \"javascript round float to 2 decimals\",\n      \"relativeRelevance\": 0.42308,\n      \"relevance\": 550,\n      \"type\": \"QUERY\"\n    }\n  ],\n  \"verbatimRelevance\": 1300\n}\n```\n\nRelevance is calculated by Google. Usually, if `relativeRelevance` is greater than 0.98 or 1, then the suggestion could be considered as an auto-complete result and will be automatically filled into the search box in Chrome.\n","readmeFilename":"README.md"}