{"id":19253254,"url":"https://github.com/dhi/html-import-updater","last_synced_at":"2025-02-23T17:12:31.226Z","repository":{"id":57267417,"uuid":"103560212","full_name":"DHI/html-import-updater","owner":"DHI","description":"📦 CLI tool that updates html imports in your web components (or even Polymer elements).","archived":false,"fork":false,"pushed_at":"2018-02-28T12:33:26.000Z","size":70,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T13:09:12.637Z","etag":null,"topics":["cli","cli-tool","html-imports","html-parser","polymer","web-components"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/html-import-updater","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/DHI.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":"2017-09-14T17:13:25.000Z","updated_at":"2018-02-13T18:07:54.000Z","dependencies_parsed_at":"2022-09-02T03:40:18.515Z","dependency_job_id":null,"html_url":"https://github.com/DHI/html-import-updater","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHI%2Fhtml-import-updater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHI%2Fhtml-import-updater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHI%2Fhtml-import-updater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHI%2Fhtml-import-updater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DHI","download_url":"https://codeload.github.com/DHI/html-import-updater/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240347980,"owners_count":19787237,"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":["cli","cli-tool","html-imports","html-parser","polymer","web-components"],"created_at":"2024-11-09T18:29:55.269Z","updated_at":"2025-02-23T17:12:31.185Z","avatar_url":"https://github.com/DHI.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTML import updater\n[![NPM version][npm-img]][npm-link] \n\nA cli tool that reads HTML files and updates their script, style or import 'src' or 'href' according to your settings.\n\n![html-import-updater](https://user-images.githubusercontent.com/1515742/31330377-7588674e-acde-11e7-94a9-40f73e7d1441.gif)\n\n### [Download latest binaries 📀](https://github.com/DHI/html-import-updater/releases/latest)\n\n##### What is this for?\n✅ Polymer projects that change the location of their 3rd party libs\u003cbr/\u003e\n✅ Polymer projects that move to npm \u003cbr/\u003e\n✅ Any project that has a bunch of HTML imports that need to be bulk-updated \u003cbr/\u003e\n✅ Works with nested HTML imports and can exclude paths\n\n## Usage (packaged)\nDownload the latest binary release for your OS on [the release page](https://github.com/DHI/html-import-updater/releases).\n\nAvailable builds: linux, macos, windows\n\n-------------------------------------------------------------------\n\nTo package the app yourself (essentially create the binaries mentioned above), run\n```bash\nnpm run publish:all # creates binaries in ./package\n```\n\n## Usage (unpackaged, as a node app)\nYou can run this tool as a node app or packaged executable.\n\n```bash\nyarn add html-import-updater # or npm install html-import-updater\ncd node_modules/html-import-updater\nnode ./index.js [options]\n```\n\n```bash\n# or clone repo and run\nnode ./index.js [options]\n```\n\n### Windows\n```bash\nPowerShell ./html-import-updater.exe [options]\n```\n### Mac / Linux\n```bash\n./html-import-updater [options]\n```\n\n## Options\n```bash\nUsage: index [options]\n\nOptions:\n\n  -V, --version             output the version number\n  --cwd, --workingDir       Current working directory (where your files\n                            are).\n  --e, --excludePaths       One or many paths (or globs) you want to\n                            exclude, i.e. `-e \"prefix-*\"`. Can be\n                            applied multiple times: `-e \"one\" -e \"two\"`.\n  --o, --outputDir          The output directory.\n  --s, --search             The string you want to search for, i.e. \"../\"\n  --r, --replace            The string you want to replace each     \n                            occurrence of the search string with.\n  --ep, --excludePatterns   One or many regular expressions that you\n                            want to exclude from each matched search\n                            item, i.e. `-ep \"iron.*\"`. Can be applied\n                            multiple times: `-ep \"one\" -ep \"two\"`.\n  -h, --help                output usage information\n```\n\n## Developing\nThe development enviornment has only been used on a macOS \u0026 Unix enviornment. Use on Windows at your own risk. The executables from releases (above) should work fine.\n\nInstall dependencies\n```bash\nyarn\n```\n\nRun app with babel-node\n```bash\nbabel-node index.js [options]\n```\n\n\u003e Requires node v8.5.0+\n\n#### Run a demo\n```bash\nnpm run demo # outputs files with replaced locations to ./replaced\n```\n\n#### Testing\n```bash\nyarn\nnpm run dev # continuous tests, watches files for changes\n```\n\n#### Run tests once\n```bash\nnpm run test\n```\n\n\n[npm-img]: https://badge.fury.io/js/html-import-updater.svg\n[npm-link]: https://npmjs.org/package/html-import-updater\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhi%2Fhtml-import-updater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhi%2Fhtml-import-updater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhi%2Fhtml-import-updater/lists"}