{"id":16864350,"url":"https://github.com/nickserv/cdnm","last_synced_at":"2025-07-07T01:36:54.400Z","repository":{"id":57195521,"uuid":"105324229","full_name":"nickserv/cdnm","owner":"nickserv","description":"Manage dependencies through CDN URLs in HTML files.","archived":false,"fork":false,"pushed_at":"2023-03-10T13:00:42.000Z","size":1131,"stargazers_count":2,"open_issues_count":14,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-04T08:47:36.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nickserv.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,"publiccode":null,"codemeta":null},"funding":{"github":"nickmccurdy"}},"created_at":"2017-09-29T23:06:57.000Z","updated_at":"2023-03-11T10:57:09.000Z","dependencies_parsed_at":"2024-08-02T11:59:19.102Z","dependency_job_id":"8c74a9c4-5b6b-4440-9289-e091245ab9c7","html_url":"https://github.com/nickserv/cdnm","commit_stats":null,"previous_names":["nickserv/cdnm"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/nickserv/cdnm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickserv%2Fcdnm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickserv%2Fcdnm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickserv%2Fcdnm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickserv%2Fcdnm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nickserv","download_url":"https://codeload.github.com/nickserv/cdnm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickserv%2Fcdnm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263998880,"owners_count":23541937,"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":[],"created_at":"2024-10-13T14:41:46.481Z","updated_at":"2025-07-07T01:36:54.349Z","avatar_url":"https://github.com/nickserv.png","language":"JavaScript","funding_links":["https://github.com/sponsors/nickmccurdy"],"categories":[],"sub_categories":[],"readme":"# cdnm (CDN Manager)\n[![npm version](https://badge.fury.io/js/cdnm.svg)](https://badge.fury.io/js/cdnm)\n\nManage dependencies through CDN URLs in HTML files. Makes maintaining\ndependencies in HTML files almost as easy as using a package manager, but\nwithout relying on a module bundler. Provides the convenience of package manager\ncommands like `npm ls` and `npm update` while automatically maintaining CDN URLs\nwith version constraints in existing HTML files. Useful for projects that depend\non packages provided by CDNs which are backed by package managers like npm.\n\n## Supported CDNs\nCurrently only npm-based CDNs are supported, though [other\nCDNs](https://github.com/nickmccurdy/cdnm/issues/4) are planned.\n\n- [unpkg](https://unpkg.com)\n- [jsDelivr for npm](https://www.jsdelivr.com/) (combine endpoint is unsupported)\n- [bundle.run](https://bundle.run/)\n\n## Installation\n1. Install Node 12 or newer.\n2. `npm install --global cdnm`\n\n## Example\n```html\n\u003c!doctype html\u003e\n\u003chtml lang=\"en\"\u003e\n  \u003chead\u003e\n    \u003ctitle\u003eHello, world!\u003c/title\u003e\n    \u003clink rel=\"stylesheet\" href=\"https://unpkg.com/juggernaut@2.1.0/index.js\"\u003e\n  \u003c/head\u003e\n  \u003cbody\u003eHello, world!\u003c/body\u003e\n\u003c/html\u003e\n```\n\n```cdnm update fixture.html```\n\n```html\n\u003c!doctype html\u003e\n\u003chtml lang=\"en\"\u003e\n  \u003chead\u003e\n    \u003ctitle\u003eHello, world!\u003c/title\u003e\n    \u003clink rel=\"stylesheet\" href=\"https://unpkg.com/juggernaut@2.1.1/index.js\"\u003e\n  \u003c/head\u003e\n  \u003cbody\u003eHello, world!\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Help\n```\n\n  Usage: cdnm [options] [command]\n\n  CDN Manager: Manage dependencies through CDN URLs in HTML files.\n\n\n  Options:\n\n    -V, --version  output the version number\n    -h, --help     output usage information\n\n\n  Commands:\n\n    list [path]      list dependencies\n    outdated [path]  list outdated dependencies\n    package [path]   write package.json file for dependencies\n    update [path]    update dependencies\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickserv%2Fcdnm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickserv%2Fcdnm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickserv%2Fcdnm/lists"}