{"id":25171763,"url":"https://github.com/basemax/bower-package-nodejs","last_synced_at":"2025-04-03T21:24:27.992Z","repository":{"id":233637392,"uuid":"625441087","full_name":"BaseMax/bower-package-nodejs","owner":"BaseMax","description":"This is a NodeJS module for getting information about Bower packages from the Bower registry, which is a REST API. It can be used to search for packages, list all packages, and check if a package exists. The package written in JavaScript.","archived":false,"fork":false,"pushed_at":"2023-04-09T13:21:40.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T17:08:04.334Z","etag":null,"topics":["bower","bower-api","bower-javascript","bower-js","bower-json","bower-npm","bower-npm-checker","bower-package","bower-packages","bower-repository","javascript","javascript-bower","js","js-bower","npm-bower"],"latest_commit_sha":null,"homepage":"https://bower.io","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BaseMax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-04-09T05:36:27.000Z","updated_at":"2023-04-09T06:32:39.000Z","dependencies_parsed_at":"2024-04-17T01:12:33.817Z","dependency_job_id":"f12eb21a-d9a9-49e4-8f17-94a5e5ab8d80","html_url":"https://github.com/BaseMax/bower-package-nodejs","commit_stats":null,"previous_names":["basemax/bower-package-nodejs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fbower-package-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fbower-package-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fbower-package-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fbower-package-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/bower-package-nodejs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247080366,"owners_count":20880252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bower","bower-api","bower-javascript","bower-js","bower-json","bower-npm","bower-npm-checker","bower-package","bower-packages","bower-repository","javascript","javascript-bower","js","js-bower","npm-bower"],"created_at":"2025-02-09T09:22:00.011Z","updated_at":"2025-04-03T21:24:27.959Z","avatar_url":"https://github.com/BaseMax.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bower-package-nodejs\n\nThis is a NodeJS module for getting information about Bower packages from the Bower registry, which is a REST API. It can be used to search for packages, list all packages, and check if a package exists. The package written in JavaScript.\n\n## Features\n\n- Search packages\n- List packages (All packages, or in chunks)\n- Internal cache feature to reduce the number of requests\n- Check package exists and name availability\n\n## Example\n\nImport the module:\n\n```javascript\nconst { searchPackage, listPackages, packageExists } = require(\"./bower-package\");\n```\n\nSearch and get the results:\n\n```javascript\nsearchPackage(\"jquery\").then((results) =\u003e {\n\tconsole.log(\"Search results: \" + results.length);\n\n\t// Iterate over the results\n\tresults.forEach((result) =\u003e {\n\t\tconsole.log(result);\n\t});\n});\n```\n\nGet the list of all packages:\n\n```javascript\nlistPackages().then((packages) =\u003e {\n\tconsole.log(\"List of packages: \" + packages.length);\n\n\t// Iterate over the results\n\tpackages.forEach((package) =\u003e {\n\t\tconsole.log(package);\n\t});\n});\n```\n\nGet the list of packages and chunk them into arrays of 20 packages:\n\n```javascript\nlistPackages(20).then((chunks) =\u003e {\n\tconsole.log(\"List of chunks: \" + chunks.length)\n\tconsole.log(\"List of packages: \" + chunks.reduce((sum, chunk) =\u003e sum + chunk.length, 0));\n\n\t// Iterate over the chunks\n\tchunks.forEach((chunk) =\u003e {\n\t\tconsole.log(chunk);\n\n\t\t// Iterate over the packages in the chunk\n\t\t// chunk.forEach((package) =\u003e {\n\t\t//     console.log(package);\n\t\t// });\n\t});\n});\n```\n\nCheck a package exists:\n\n```javascript\npackageExists(\"jquery\").then((exists) =\u003e {\n\tconsole.log(\"Package exists: \" + exists)\n});\n```\n\nCopyright 2023, Max Base\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fbower-package-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fbower-package-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fbower-package-nodejs/lists"}