{"id":16781272,"url":"https://github.com/bdbai/bootcdn-cli","last_synced_at":"2025-06-21T10:05:38.591Z","repository":{"id":10847582,"uuid":"66923873","full_name":"bdbai/bootcdn-cli","owner":"bdbai","description":"A CLI interface for bootcdn.cn","archived":false,"fork":false,"pushed_at":"2022-12-30T22:37:11.000Z","size":137,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-16T15:56:55.726Z","etag":null,"topics":["bootcdn","cli-interface","node-module"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bdbai.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}},"created_at":"2016-08-30T08:54:55.000Z","updated_at":"2022-03-24T15:43:56.000Z","dependencies_parsed_at":"2023-01-13T16:11:38.074Z","dependency_job_id":null,"html_url":"https://github.com/bdbai/bootcdn-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bdbai/bootcdn-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdbai%2Fbootcdn-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdbai%2Fbootcdn-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdbai%2Fbootcdn-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdbai%2Fbootcdn-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bdbai","download_url":"https://codeload.github.com/bdbai/bootcdn-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdbai%2Fbootcdn-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260195004,"owners_count":22972652,"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":["bootcdn","cli-interface","node-module"],"created_at":"2024-10-13T07:37:10.304Z","updated_at":"2025-06-21T10:05:33.573Z","avatar_url":"https://github.com/bdbai.png","language":"JavaScript","readme":"# bootcdn-cli\nA CLI interface for [bootcdn.cn](http://www.bootcdn.cn/)\n\n[![Build status](https://travis-ci.org/bdbai/bootcdn-cli.svg)](https://travis-ci.org/bdbai/bootcdn-cli)\n\n## Setup\n```bash\nsudo npm install -g bootcdn-cli\n```\n\n## Demo\n\n[![asciicast](https://asciinema.org/a/ayf8gupozjtx4bwlqwugxh2bc.png)](https://asciinema.org/a/ayf8gupozjtx4bwlqwugxh2bc)\n\n\n## Usage\n```bash\n# Use interactive CLI\nbootcdn\n\n# Get the latest stable version of jQuery\n# with `async` HTML attribute appended\nbootcdn --async jquery\nbootcdn -a jquery\n\n# Find a specific version of Bootstrap\nbootcdn bootstrap@3\n\n# Do not wrap urls with HTML tags\nbootcdn --raw bootstrap@3\nbootcdn -r bootstrap@3\n\n# Find multiple libraries at one time\nbootcdn jquery@2 bootstrap@3\n\n# Reset cache first\nbootcdn --force\nbootcdn -f\n\n# Check your clipboard!\n```\n\n## API\n### fetchAllLibraries\n\u003e Returns a Promise to fetch libraries from [BootCDN API](https://api.bootcdn.cn/libraries.json).\n\n### fetchAllLibraryNames\n\u003e Returns a Promise to fetch library names from [BootCDN API](https://api.bootcdn.cn/names.json).\n\n### fetchLibrary(string)\n\u003e Returns a Promise to fetch library information with the specified library name.\n\n### Example\n```js\nconst bootcdn = require('bootcdn');\n\nbootcdn.fetchAllLibraries()\n    .then(libs =\u003e console.log(libs));\n/* Map {\n      'bootstrap' =\u003e {\n        name: 'bootstrap',\n        desc: 'The most popular front-end framework for developing responsive, mobile first projects on the web.',\n        star: 99963 },\n      'd3' =\u003e {\n        name: 'd3',\n        desc: 'A JavaScript visualization library for HTML and SVG.',\n        star: 54254 },\n      ... }\n*/\n\nbootcdn.fetchAllLibraryNames()\n    .then(names =\u003e console.log(names));\n/* [\n     'twitter-bootstrap',\n     'vue',\n     'react',\n     'react-dom',\n     'd3',\n     ... ]\n*/\n\nbootcdn.fetchLibrary('twitter-bootstrap')\n    .then(bootstrap =\u003e console.log(bootstrap));\n/* {\n    name: 'twitter-bootstrap',\n    npmName: 'bootstrap',\n    version: '4.1.1',\n    description: 'The most popular front-end framework for developing responsive, mobile first projects on the web.',\n    homepage: 'http://getbootstrap.com/',\n    keywords: [ 'css', 'less', 'mobile-first', 'responsive', 'front-end', 'framework', 'web', 'twitter', 'bootstrap' ],\n    license: 'MIT',\n    repository: { type: 'git', url: 'https://github.com/twbs/bootstrap' },\n    assets: [\n      {\n        version: '4.1.1',\n        files: [\n                   'css/bootstrap-grid.css',\n                   'css/bootstrap-grid.min.css', ... ],\n        urls: [\n                  'https://cdn.bootcss.com/twitter-bootstrap/4.1.1/css/bootstrap-grid.css',\n                  'https://cdn.bootcss.com/twitter-bootstrap/4.1.1/css/bootstrap-grid.min.css', ... ],\n        isUnstable: false\n      },\n      ... ],\n    stars: 127718\n}\n*/\n```\n\n\n## License\nUsing MIT.\n\nIssues and pull requests are welcome.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdbai%2Fbootcdn-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbdbai%2Fbootcdn-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdbai%2Fbootcdn-cli/lists"}