{"id":16515199,"url":"https://github.com/pine/node-camo-url","last_synced_at":"2026-03-04T18:32:31.810Z","repository":{"id":29372934,"uuid":"32907701","full_name":"pine/node-camo-url","owner":"pine","description":"Create a image url by proxy that is camo.","archived":false,"fork":false,"pushed_at":"2019-03-27T19:18:36.000Z","size":21,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-28T17:54:36.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/camo-url","language":"LiveScript","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/pine.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":"2015-03-26T04:33:53.000Z","updated_at":"2021-08-06T06:09:36.000Z","dependencies_parsed_at":"2022-09-15T22:30:39.342Z","dependency_job_id":null,"html_url":"https://github.com/pine/node-camo-url","commit_stats":null,"previous_names":["pine613/node-camo-url"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/pine/node-camo-url","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fnode-camo-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fnode-camo-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fnode-camo-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fnode-camo-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pine","download_url":"https://codeload.github.com/pine/node-camo-url/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fnode-camo-url/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30089355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T18:31:08.343Z","status":"ssl_error","status_checked_at":"2026-03-04T18:31:07.708Z","response_time":59,"last_error":"SSL_read: 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-11T16:16:01.504Z","updated_at":"2026-03-04T18:32:31.782Z","avatar_url":"https://github.com/pine.png","language":"LiveScript","readme":"camo-url\n--------\n\n[![npm version](https://img.shields.io/npm/v/camo-url.svg?style=flat-square)](https://www.npmjs.com/package/camo-url)\n[![Build Status](http://img.shields.io/travis/pine/node-camo-url/master.svg?style=flat-square)](https://travis-ci.org/pine/node-camo-url)\n[![Coverage Status](https://img.shields.io/coveralls/pine/node-camo-url/master.svg?style=flat-square)](https://coveralls.io/r/pine/node-camo-url?branch=master)\n[![Dependency Status](https://img.shields.io/david/pine/node-camo-url.svg?style=flat-square)](https://david-dm.org/pine/node-camo-url)\n[![devDependency Status](https://img.shields.io/david/dev/pine/node-camo-url.svg?style=flat-square)](https://david-dm.org/pine/node-camo-url#info=devDependencies)\n\nCreate a image url by proxy that is [camo](https://github.com/atmos/camo).\n\n## Getting started\n\n```sh\n$ npm install camo-url --save\n```\n\n## Examples\nIt's very easy to use.\n\n```js\nvar camoUrl = require('camo-url')({\n  host: 'https://camo.yourdomain.com',\n  key: 'your_camo_key'\n});\n\nconsole.log(camoUrl('http://www.example.com/example.jpg'));\n// =\u003e https://camo.yourdomain.com/c8b84571f98f34c41f7b4810a605e06d872eecd0?url=http%3A%2F%2Fwww.example.com%2Fexample.jpg\n```\n\n## References\n### require('camo-url')(options)\nInitialize this package.\n\n - options ... Type: `object` ... information of your camo server (optional)\n   - host: host name (optional)\n     - Type: `string`\n     - Default: `'http://localhost:8081'`\n   - key: camo key (optional)\n     - Type: `string`\n     - Default: `'0x24FEEDFACEDEADBEEFCAFE'`\n   - type: proxied url type (optional)\n     - Type: `'query'` or `'path'`\n     - Default: `'query'`\n\n### camoUrl(imageUrl)\nGenerate a proxied image URL.\n\n - imageUrl: an absolute URL of an image\n   - Type: `string`\n - returns: proxied URL\n   - Type: `string`\n\n### camoUrl.digest(imageUrl)\nGet digest of an image URL.\n\n - imageUrl: an absolute URL of an image\n   - Type: `string`\n - returns: digest of the URL\n   - Type: `string`\n\n## FAQ\n### Q. How do I create a GitHub style camo's URL?\nA. Please try `type: 'path'` option.\n\n```js\nvar camoUrl = require('camo-url')({\n  host: 'https://camo.yourdomain.com',\n  key: 'your_camo_key',\n  type: 'path'\n});\n\nconsole.log(camoUrl('http://www.example.com/example.jpg'));\n// =\u003e https://camo.yourdomain.com/c8b84571f98f34c41f7b4810a605e06d872eecd0/687474703a2f2f7777772e6578616d706c652e636f6d2f6578616d706c652e6a7067\n```\n\n## License\nMIT \u0026copy; Pine Mizune\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpine%2Fnode-camo-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpine%2Fnode-camo-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpine%2Fnode-camo-url/lists"}