{"_id":"@azure/cognitiveservices-customimagesearch","_rev":"14-76d46db149a46ff2cb73dc5481e8724a","name":"@azure/cognitiveservices-customimagesearch","dist-tags":{"latest":"2.0.1"},"versions":{"0.1.0":{"name":"@azure/cognitiveservices-customimagesearch","version":"0.1.0","keywords":["node","azure","typescript","browser","isomorphic"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/cognitiveservices-customimagesearch@0.1.0","maintainers":[{"name":"amarzavery","email":"amarzavery@gmail.com"},{"name":"billytrend","email":"billy.trend@gmail.com"},{"name":"sergeyshandar","email":"sergey.shandar@gmail.com"},{"name":"veronicagg","email":"bggve@outlook.com"},{"name":"vladbarosan","email":"vlad.barosan@gmail.com"}],"homepage":"https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/cognitiveservices-customimagesearch","bugs":{"url":"https://github.com/azure/azure-sdk-for-js/issues"},"dist":{"shasum":"fb1f4e4cea3bfaddc326ce04f43b3149fa426a3c","tarball":"https://registry.npmjs.org/@azure/cognitiveservices-customimagesearch/-/cognitiveservices-customimagesearch-0.1.0.tgz","fileCount":49,"integrity":"sha512-UP/NRqtHHCrpQHx0vRwftZN5TKzfgeRRzC4Rlc9qEB0t3wdN+3fbQ9332jekNa6ek69kGRVbrAYMzbatlT33xQ==","signatures":[{"sig":"MEQCIEu60wnHyC2I7Q2oCjEzJA2Y6FeOEoveNP61u74tFT8HAiAd7bkNBXxU+kw+FB9GFR199CxCBUIIQUJn1sSvDojKDw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":339943,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb7GJCCRA9TVsSAnZWagAAft8QAKKsxZq/ZZGGL4doRn+Z\nWpMYiVhjdZJWQcNyFXYzJX1nlwQG0ZrRAV5Qy7u8MHqAVL07aaTvkhLzIXAo\nOTPLBL9S0VNhODSvcX8sTemQ71ZY1VAEV752XYnEbpN4MCrVHfuGd8ijUyeC\n8AmnzBM3mLzcf0TnncuinT75rbd0R79MLkCZKFb9AjceuQU/HUB3nmbJPfLl\nflg2XucuhES61xhiHCY3BVz2GkOP80WitTcdMZ1rA6WoABN6vgRKt5O76BPx\nCsXRgxReB+plzE6VHve6v8kxOx0mXFxbXFNkdqmbGY60YOrKOfvwdeXXCS19\nvWJ/umCIEL80MHfeS6oOoEyl4OmJIfJR0xQYu79BKstVbTmwp0fcdsGykcwy\n+dQOJs8NUd7QkEsChQmfMfrH+eG2HbsS1PGVxIL7s+7lagBQBf86xlv8QGxI\npOoxvSxY7GtIR+trAYVzIwTcUyibn2Ky3n/d4zPw4Moer4DRmcHGJiao3Zol\nT1uIAdXDckWiyxS7K7u4cFb6SAEVI6NsSToMtoI2HdsCovnF5nrt6Ngg5Gyg\n7j+fiviiCjLHUF41mmLgjt0yPESRq1LLdRA5y4W+iJMKKikzLkF7t2w0A/Se\n9HjB9K3jrn8b7v52naK9uzfH2XhD8sw7OQG1liW4Nj/I1Dwhqn/R54g8y8TV\nopDv\r\n=Y4Ox\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/cognitiveservices-customimagesearch.js","_from":"file:..\\_public.Azure.azure-sdk-for-js\\drop\\azure-cognitiveservices-customimagesearch-0.1.0.tgz","types":"./esm/customImageSearchAPIClient.d.ts","module":"./esm/customImageSearchAPIClient.js","scripts":{"build":"tsc && rollup -c rollup.config.js && npm run minify","minify":"uglifyjs -c -m --comments --source-map \"content='./dist/cognitiveservices-customimagesearch.js.map'\" -o ./dist/cognitiveservices-customimagesearch.min.js ./dist/cognitiveservices-customimagesearch.js","prepack":"npm install && npm run build"},"_npmUser":{"name":"sergeyshandar","email":"sergey.shandar@gmail.com"},"_resolved":"","_integrity":"","deprecated":"This package has been deprecated. See https://learn.microsoft.com/bing/search-apis for details on how to use Bing Search Services.","repository":{"url":"git+https://github.com/azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.4.1","description":"CustomImageSearchAPIClient Library with typescript type definitions for node.js and browser.","directories":{},"sideEffects":false,"_nodeVersion":"10.13.0","dependencies":{"tslib":"^1.9.3","@azure/ms-rest-js":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^0.66.2","uglify-js":"^3.4.9","typescript":"^3.1.1","rollup-plugin-node-resolve":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/cognitiveservices-customimagesearch_0.1.0_1542218305541_0.07135230607363208","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@azure/cognitiveservices-customimagesearch","version":"1.0.1","keywords":["node","azure","typescript","browser","isomorphic"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/cognitiveservices-customimagesearch@1.0.1","maintainers":[{"name":"amarzavery","email":"amarzavery@gmail.com"},{"name":"billytrend","email":"billy.trend@gmail.com"},{"name":"sergeyshandar","email":"sergey.shandar@gmail.com"},{"name":"veronicagg","email":"bggve@outlook.com"},{"name":"vladbarosan","email":"vlad.barosan@gmail.com"}],"homepage":"https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/cognitiveservices-customimagesearch","bugs":{"url":"https://github.com/azure/azure-sdk-for-js/issues"},"dist":{"shasum":"fb7a4dc93700416d6848f0df3cadf69eb4e02ffb","tarball":"https://registry.npmjs.org/@azure/cognitiveservices-customimagesearch/-/cognitiveservices-customimagesearch-1.0.1.tgz","fileCount":49,"integrity":"sha512-Zph4fb7Bh2zAf5odbUysrnCe89n1DLcklHdXtQLqo5nHW570AiK/kQhWg5VtbDQz4bSWR+Q6gYLo2YxVyrP8QA==","signatures":[{"sig":"MEYCIQDMKn4UziLUV0CsGpJw97J9KY8+LDO33n1zpH0RdfF+rQIhAMkHI5Uowi7lpBhUKVZgbZGV9x6QfV5ukiAxwQ6pBeJK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":392055,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcCruDCRA9TVsSAnZWagAAUpIQAIMuVIu4FurS4JuUoIxC\ntSgNzlMiN79AsWFt9S3RQ92rBu5tlg9sSFAPPfsNpo5+jp1XjCz9wyVnqgyI\nKC4mm8JjZ24OrcBlUAW+0tuJXVogICnKC2OTXSFfy6jI9CAJ5HbbHzT9stTB\nZ77NTATG7dRsxTEntaysoqYkzkVKoD04ZRwM4UPXeyCxpbjy9AjW1cBASFYl\nO6WigWmGoj+mOBUKfV5jm4YnIGjh2BMIRKfCmR5w/tycfpbWnsEETSH5711y\nuxYf8lF/waMXWv141Qc9hOc6Eq2/X3iCwcaYQs6+5UoMxck4wJSfO4Dvfej1\nWLhHsACsixJhdc7LEC3zgZoRfbT461YPU3U9aWXPsEjRYK1ofQ2FKYRWaubv\nLjV+HFRH504z5TPHXoCF0kbW9p4oZPLHNs+tfwBBqIAyK8Y89EecMYgicrwL\n7/vV5X7mrcWYLYFxXCSSi84FqDXunyLpFQn8IJHpwxmb3omNXjtXYxJ2b5tI\nk9xNkdRsLnVuuDubgfngaOC/W21RVi6roL2jLUxTwZNBwjLTr0L7PKVZ35Oy\n1oBzLTsvFVkEGOYawxFxgVBAycNLggovez7rX7h4+Jf3DmKxFjNIUllL1nBg\nGrMmkVVDYl8R7gCuaXkG+khK085Z+57E/mSFPS26Fe+FMWw21t0hYjrvG97D\nc6+k\r\n=1RND\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/cognitiveservices-customimagesearch.js","_from":"file:..\\_public.Azure.azure-sdk-for-js\\drop\\azure-cognitiveservices-customimagesearch-1.0.1.tgz","types":"./esm/customImageSearchClient.d.ts","module":"./esm/customImageSearchClient.js","scripts":{"build":"tsc && rollup -c rollup.config.js && npm run minify","minify":"uglifyjs -c -m --comments --source-map \"content='./dist/cognitiveservices-customimagesearch.js.map'\" -o ./dist/cognitiveservices-customimagesearch.min.js ./dist/cognitiveservices-customimagesearch.js","prepack":"npm install && npm run build"},"_npmUser":{"name":"sergeyshandar","email":"sergey.shandar@gmail.com"},"_resolved":"","_integrity":"","deprecated":"This package has been deprecated. See https://learn.microsoft.com/bing/search-apis for details on how to use Bing Search Services.","repository":{"url":"git+https://github.com/azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.4.1","description":"CustomImageSearchClient Library with typescript type definitions for node.js and browser.","directories":{},"sideEffects":false,"_nodeVersion":"10.14.1","dependencies":{"tslib":"^1.9.3","@azure/ms-rest-js":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^0.66.2","uglify-js":"^3.4.9","typescript":"^3.1.1","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-node-resolve":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/cognitiveservices-customimagesearch_1.0.1_1544207234114_0.7103290513918772","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@azure/cognitiveservices-customimagesearch","version":"2.0.0","keywords":["node","azure","typescript","browser","isomorphic"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/cognitiveservices-customimagesearch@2.0.0","maintainers":[{"name":"amarzavery","email":"amarzavery@gmail.com"},{"name":"azure-sdk","email":"azuresdkengsysadmins@microsoft.com"},{"name":"billytrend","email":"billy.trend@gmail.com"},{"name":"sergeyshandar","email":"sergey.shandar@gmail.com"},{"name":"veronicagg","email":"bggve@outlook.com"},{"name":"vladbarosan","email":"vlad.barosan@gmail.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/cognitiveservices/cognitiveservices-customimagesearch","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"2f90b6a5b5d4a5dd3f3b7eedc2f1f9ffea52272a","tarball":"https://registry.npmjs.org/@azure/cognitiveservices-customimagesearch/-/cognitiveservices-customimagesearch-2.0.0.tgz","fileCount":49,"integrity":"sha512-rRdYWDMf+4TOdXCx6LyrrtCfDS8qtr88X0mK0c/XRdPEBqrtjVlDVmXP8MPorhT1VovAes2y4KDSCYOHYRSLlg==","signatures":[{"sig":"MEYCIQDUmsIxd7WIb0NlLU8Hlj8jeaXGezZSoRzdjOnvxO0IJgIhAKJMxGbhGSivsF3FvNCJdM/oQ78SLXlkRuSTJxz9Ac1M","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":370417,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdeS+5CRA9TVsSAnZWagAASiwQAI0KAefU1PR4lHP6ry1n\n94b4ByqEWMd3JG5LZYILnVscLePGfx7s2UrmoCgkwXnpB6vwgZI+pPpwpHlO\nOZgPnRWThU70qy4nbduuTVps8REGYh0We7Bk93h+VxckvH2NaSaqtgJAabEY\n8gDaW0zmi/EFgw5Izhuixl04vwBYax3vi+tknP5z0/nVAdeYlcpz1x5HMLI+\nyP0K91Kd7KDRXcWOVmicCfdTCudSCQ4Ejjne+iSObhBruuyjHL1kW/ahAL6d\nyOuWhTmIph3fCXiYKMgBI008vV/cpmCwsI6tbe4ZTidE4TtZ4T+u+eOvCbJ6\nW8fN7rIColk+OO52AzzA7wiwZM7+ayXuQJsLfi1E/kzxY80vnAHtKMmrfWBA\naIvjamhBuI4q0LngO8d2cbIOlu6erCrE1+b0u795qnpoPsrhvTz2LAQ9u6tY\ni9h77I5EY4MToG13TxgrFH24B78zToNYuR6Um4OUM2JlGGbb53jbQybioh4w\nBxl1DjSGhyFPBvTePgcfCFM0IdCXIsKHy+r/vmm9LF+G9dWKrClbioK2kARU\n9MQPQbUJm6tiovqW98nn23tORmFdW4e4e67V3Vh7RSi92I1b09yWgtCnxkMY\ndMbfvrlRIEdMpSPBe5/G63OzmX4UIcxLeaEXXajZfHg5x83mKjqZsaNYZjYj\n1LBe\r\n=n4V/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/cognitiveservices-customimagesearch.js","_from":"file:/home/vsts/work/r1/a/_js - mgmt - ci/drop/azure-cognitiveservices-customimagesearch-2.0.0.tgz","types":"./esm/customImageSearchClient.d.ts","module":"./esm/customImageSearchClient.js","scripts":{"build":"tsc && rollup -c rollup.config.js && npm run minify","minify":"uglifyjs -c -m --comments --source-map \"content='./dist/cognitiveservices-customimagesearch.js.map'\" -o ./dist/cognitiveservices-customimagesearch.min.js ./dist/cognitiveservices-customimagesearch.js","prepack":"npm install && npm run build"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"","_integrity":"","deprecated":"This package has been deprecated. See https://learn.microsoft.com/bing/search-apis for details on how to use Bing Search Services.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.9.0","autoPublish":true,"description":"CustomImageSearchClient Library with typescript type definitions for node.js and browser.","directories":{},"sideEffects":false,"_nodeVersion":"10.16.3","dependencies":{"tslib":"^1.10.0","@azure/ms-rest-js":"^2.0.4"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^1.18.0","uglify-js":"^3.6.0","typescript":"^3.5.3","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/cognitiveservices-customimagesearch_2.0.0_1568223161026_0.2981673633995541","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@azure/cognitiveservices-customimagesearch","version":"2.0.1","keywords":["node","azure","typescript","browser","isomorphic"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/cognitiveservices-customimagesearch@2.0.1","maintainers":[{"name":"amarzavery","email":"amarzavery@gmail.com"},{"name":"azure-sdk","email":"azuresdkengsysadmins@microsoft.com"},{"name":"billytrend","email":"billy.trend@gmail.com"},{"name":"sergeyshandar","email":"sergey.shandar@gmail.com"},{"name":"veronicagg","email":"bggve@outlook.com"},{"name":"vladbarosan","email":"vlad.barosan@gmail.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/cognitiveservices/cognitiveservices-customimagesearch","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"804225d607367f3838f627c341047322fc3a196b","tarball":"https://registry.npmjs.org/@azure/cognitiveservices-customimagesearch/-/cognitiveservices-customimagesearch-2.0.1.tgz","fileCount":49,"integrity":"sha512-ftPM+oFsoYYThJ2EFMAKMDE/kD48jLsac/crSz2651YjRF6mxMZSuh0LfiC3R1ofSXx+3cthKZ70D8mkytAelw==","signatures":[{"sig":"MEUCIQC0UBmB83K4EScEQyZuGD/0Rp76uOPVYneWnVL/cVHh8AIgTz5YLDlqj1dd66PWFlL1FJJsHHlkzeib4bEkJr8c2oE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":371343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfH2bdCRA9TVsSAnZWagAAkx0P/1rnGO88fvLOFbMw5Xj4\nIoI0R4ot5JOO8cX+xarT7Nv5UalUu+bVyzBf9U0B3JzvulhEbotHCpwiA7C4\nwG4Tc0DNc4SYjswA/RGKYKsuD0W8ST3Mvlp6thUTvsc7Tc0MNOVBiPdmvcKI\nEFI2D8cCrWVWee/QxIMfGYGyv52kCmdGDfNWX0ZMXbKp3HJiMePnVBmgVWjO\nQXb+a5HZ1C6PPZ3JY6Yal5fzgwlXS4WWolnwYu5JDupCmLSI0OOhvEmfyDVz\nCTbL5s8Jy5rsZQLw4wHXxaR6jpzuRsDrdWs6Em2UpgCybcdw7/LHi0uQlGTF\nCrLwTeDd3U7LT92uxrEqDqqUI1bXwgog0x9LRYv0DEknjwmGWRKnc/YZMRQG\nqa6ChL1eWc5ehuLu2UgZasfgEtKvPwkbuyNsjhAVOl3g1PSSMzSQIesm11YT\nRAQ405nQPg3TsofjB94SU690R2PQrBNMRyRdOFivQzuM8kFaTG5pTuSvwqBM\n5/sadBodopTIXRrUfJOWeL/1/y5FMPneFNLqBI1kWKRwJrrgdbxFSu7QVXvf\n/5SJGX2EBI20eq90+X9B1VmfUUdgo86trRf0mGcYNSbWnZBi164pGxw8t/p0\nenZaTo2ut9aHqU/cUN6Pq5KOVGIAyleWzR3G/MGI0nMMsRxbpqNodKzsLBN9\nhVpo\r\n=/2Cz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/cognitiveservices-customimagesearch.js","_from":"file:/home/vsts/work/r1/a/_js - mgmt - ci/drop/azure-cognitiveservices-customimagesearch-2.0.1.tgz","types":"./esm/customImageSearchClient.d.ts","module":"./esm/customImageSearchClient.js","scripts":{"build":"tsc && rollup -c rollup.config.js && npm run minify","minify":"uglifyjs -c -m --comments --source-map \"content='./dist/cognitiveservices-customimagesearch.js.map'\" -o ./dist/cognitiveservices-customimagesearch.min.js ./dist/cognitiveservices-customimagesearch.js","prepack":"npm install && npm run build"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"","_integrity":"","deprecated":"This package has been deprecated. See https://learn.microsoft.com/bing/search-apis for details on how to use Bing Search Services.","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"6.14.4","autoPublish":true,"description":"CustomImageSearchClient Library with typescript type definitions for node.js and browser.","directories":{},"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.10.0","@azure/ms-rest-js":"^2.0.4"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^1.18.0","uglify-js":"^3.6.0","typescript":"^3.5.3","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/cognitiveservices-customimagesearch_2.0.1_1595893469141_0.38048372593023627","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-11-14T17:58:25.370Z","modified":"2026-03-19T20:34:02.208Z","1.0.0":"2018-10-31T01:11:54.871Z","0.1.0":"2018-11-14T17:58:25.626Z","1.0.1":"2018-12-07T18:27:14.208Z","2.0.0":"2019-09-11T17:32:41.122Z","2.0.1":"2020-07-27T23:44:29.323Z"},"bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"author":{"name":"Microsoft Corporation"},"license":"MIT","homepage":"https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/cognitiveservices/cognitiveservices-customimagesearch","keywords":["node","azure","typescript","browser","isomorphic"],"repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"description":"CustomImageSearchClient Library with typescript type definitions for node.js and browser.","maintainers":[{"email":"amarzavery@gmail.com","name":"amarzavery"},{"email":"vlad.barosan@gmail.com","name":"vladbarosan"},{"email":"bggve@outlook.com","name":"veronicagg"},{"email":"azure-sdk-npmjs@microsoft.com","name":"azure-sdk"},{"email":"npmjs@microsoft.com","name":"microsoft1es"},{"email":"microsoft-oss-publishing@microsoft.com","name":"microsoft-oss-releases"}],"readme":"## An isomorphic javascript sdk for - CustomImageSearchClient\n\nThis package contains an isomorphic SDK for CustomImageSearchClient.\n\n### Currently supported environments\n\n- Node.js version 6.x.x or higher\n- Browser JavaScript\n\n### How to Install\n\n```bash\nnpm install @azure/cognitiveservices-customimagesearch\n```\n\n### How to use\n\n#### nodejs - Authentication, client creation and imageSearch customInstance as an example written in TypeScript.\n\n##### Install @azure/ms-rest-azure-js\n\n```bash\nnpm install @azure/ms-rest-azure-js\n```\n\n##### Sample code\nThe following sample performs an image search for given query on a custom configuration. The custom configuration can be setup using the Custom search portal. To know more, refer to the [Azure Documentation on Bing Custom Search](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-custom-search/)\n\n```javascript\nconst { CustomImageSearchClient } = require(\"@azure/cognitiveservices-customimagesearch\");\nconst { CognitiveServicesCredentials } = require(\"@azure/ms-rest-azure-js\");\n\nasync function main() {\n  const customImageSearchKey =\n    process.env[\"customImageSearchKey\"] || \"<customImageSearchKey>\";\n  const customImageSearchEndPoint =\n    process.env[\"customImageSearchEndPoint\"] || \"<customImageSearchEndPoint>\";\n  const customImageConfig =\n    process.env[\"customImageConfig\"] || \"<customImageConfig>\";\n  const cognitiveServiceCredentials = new CognitiveServicesCredentials(\n    customImageSearchKey\n  );\n  const client = new CustomImageSearchClient(cognitiveServiceCredentials, {\n    endpoint: customImageSearchEndPoint\n  });\n  const query = \"Olympics\";\n  const options = {\n    count: 10,\n    safeSearch: \"Moderate\"\n  };\n  client.customInstance\n    .imageSearch(customImageConfig, query, options)\n    .then(result => {\n      console.log(\"The result is: \");\n      console.log(result);\n    })\n    .catch(err => {\n      console.log(\"An error occurred:\");\n      console.error(err);\n    });\n}\n\nmain();\n```\n\n#### browser - Authentication, client creation and imageSearch customInstance as an example written in JavaScript.\n\n##### Sample code\n\n- index.html\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <title>@azure/cognitiveservices-customimagesearch sample</title>\n    <script src=\"node_modules/@azure/ms-rest-js/dist/msRest.browser.js\"></script>\n    <script src=\"node_modules/@azure/cognitiveservices-customimagesearch/dist/cognitiveservices-customimagesearch.js\"></script>\n    <script type=\"text/javascript\">\n      const customImageSearchKey = \"<YOUR_CUSTOM_IMAGE_SEARCH_KEY>\";\n      const customImageSearchEndPoint = \"<YOUR_CUSTOM_IMAGE_SEARCH_ENDPOINT>\";\n      const customImageConfig = \"<YOUR_CUSTOM_IMAGE_CONFIG>\";\n\n      const cognitiveServiceCredentials = new msRest.ApiKeyCredentials({\n        inHeader: {\n          \"Ocp-Apim-Subscription-Key\": customImageSearchKey\n        }\n      });\n\n      const client = new Azure.CognitiveservicesCustomimagesearch.CustomImageSearchClient(\n        cognitiveServiceCredentials,\n        {\n          endpoint: customImageSearchEndPoint\n        }\n      );\n\n      const query = \"Olympics\";\n      const options = {\n        count: 10,\n        safeSearch: \"Moderate\"\n      };\n      client.customInstance\n        .imageSearch(customImageConfig, query, options)\n        .then(result => {\n          console.log(\"The result is: \");\n          console.log(result);\n        })\n        .catch(err => {\n          console.log(\"An error occurred:\");\n          console.error(err);\n        });\n    </script>\n  </head>\n  <body></body>\n</html>\n```\n\n## Related projects\n\n- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)\n\n![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fcognitiveservices%2Fcognitiveservices-customimagesearch%2FREADME.png)\n","readmeFilename":"README.md"}