{"id":17324021,"url":"https://github.com/strugee/httpsize","last_synced_at":"2026-01-20T15:04:27.865Z","repository":{"id":16670424,"uuid":"63311991","full_name":"strugee/httpsize","owner":"strugee","description":"Find all HTTP links in a directory and try to convert them to use HTTPS","archived":false,"fork":false,"pushed_at":"2022-01-29T16:27:17.000Z","size":32,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-12T23:39:54.109Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strugee.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-14T07:17:53.000Z","updated_at":"2020-07-02T21:15:50.000Z","dependencies_parsed_at":"2022-07-26T08:17:12.742Z","dependency_job_id":null,"html_url":"https://github.com/strugee/httpsize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/strugee/httpsize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strugee%2Fhttpsize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strugee%2Fhttpsize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strugee%2Fhttpsize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strugee%2Fhttpsize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strugee","download_url":"https://codeload.github.com/strugee/httpsize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strugee%2Fhttpsize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28605998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T14:45:23.139Z","status":"ssl_error","status_checked_at":"2026-01-20T14:44:16.929Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-15T14:09:49.255Z","updated_at":"2026-01-20T15:04:27.842Z","avatar_url":"https://github.com/strugee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTPS-ize\n\n## About\n\nAutomatically scan through a directory tree, looking for HTTP links that can be converted into HTTPS.\n\nConversion is done based upon the [HTTPS Everywhere][1] ruleset.\n\n## Usage\n\n```js\nvar httpsize = require('httpsize');\n\nhttpsize.updateRules(function(err) {\n\tif (err) throw err;\n\n\thttpsize.loadRules(function(err) {\n\t\tif (err) throw err;\n\t});\n});\n\n```\n\n### `rewrite(buf, rules, cb)`\n\nScan text for URLs and rewrite them based on provided rulesets.\n\nParameters:\n\n* `buf` (`Buffer` or `String`) text to rewrite.\n* `rules` (`Array`) ruleset as returned from `loadRules()`\n* `cb` (`Function`) callback function that will be called upon operation completion. If there was an error, it will be passed to the function as the first argument. If rewriting was successful, the rewritten text will be passed to the function as the second argument.\n\n### `loadRules([dir,] cb)`\n\nLoad rulesets into memory. Rulesets must have an extension of `.xml`.\n\nParameters:\n\n* `dir` (`String`; optional) directory to load rules from. Defaults to `HTTPSize/repo/src/chrome/content/rules` in the user's (OS-dependent) cache directory (in other words: the ruleset location in the HTTPS Everywhere repository appended to the default directory for `updateRules()`).\n* `cb` (`Function`) callback function that will be called upon operation completion. If there was an error, it will be passed to the function as the first argument. If loading was successful, the ruleset will be passed to the function as the second argument.\n\n### `updateRules([dir,] cb)`\n\nConvenience function to download the official HTTPS Everywhere repository, which contains the primary ruleset.\n\nParameters:\n\n* `dir` (`String`; optional) directory to download repository to. Defaults to `HTTPSize/repo` in the user's (OS-dependent) cache directory.\n* `cb` (`Function`) callback function that will be called upon operation completion. If there was an error, it will be passed to the function as the first argument.\n\n_**WARNING:**_ `updateRules()` makes a call to `nodegit`'s `Remote.url()` method which is _synchronous_!\n\n## License\n\nGPL 3.0+\n\n## Author\n\nAJ Jordan \u003calex@strugee.net\u003e\n\n [1]: https://github.com/EFForg/HTTPS-Everywhere\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrugee%2Fhttpsize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrugee%2Fhttpsize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrugee%2Fhttpsize/lists"}