{"id":18389573,"url":"https://github.com/anseki/console-substitute","last_synced_at":"2026-04-28T13:32:32.138Z","repository":{"id":57206083,"uuid":"44337650","full_name":"anseki/console-substitute","owner":"anseki","description":"Polyfill for the String Substitutions by console.","archived":false,"fork":false,"pushed_at":"2022-08-19T02:56:34.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T15:50:05.859Z","etag":null,"topics":["android","browser","console","console-error","console-log","console-substitute","debug","log","output","polyfill","string-substitution"],"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/anseki.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-10-15T18:36:59.000Z","updated_at":"2023-10-06T17:15:33.000Z","dependencies_parsed_at":"2022-08-30T14:51:22.824Z","dependency_job_id":null,"html_url":"https://github.com/anseki/console-substitute","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/anseki/console-substitute","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fconsole-substitute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fconsole-substitute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fconsole-substitute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fconsole-substitute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anseki","download_url":"https://codeload.github.com/anseki/console-substitute/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseki%2Fconsole-substitute/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261910117,"owners_count":23228955,"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":["android","browser","console","console-error","console-log","console-substitute","debug","log","output","polyfill","string-substitution"],"created_at":"2024-11-06T01:43:45.523Z","updated_at":"2026-04-28T13:32:32.107Z","avatar_url":"https://github.com/anseki.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# console-substitute\n\n[![npm](https://img.shields.io/npm/v/console-substitute.svg)](https://www.npmjs.com/package/console-substitute) [![GitHub issues](https://img.shields.io/github/issues/anseki/console-substitute.svg)](https://github.com/anseki/console-substitute/issues) [![dependencies](https://img.shields.io/badge/dependencies-No%20dependency-brightgreen.svg)](package.json) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nPolyfill for the String Substitutions by console.\n\nThe `console` of web browser supports [the String Substitutions](https://developer.mozilla.org/en-US/docs/Web/API/console#Using_string_substitutions). It is very useful for debugging, etc.  \nFor example, the multiple variables don't have to be joined by `+`:\n\n```js\nconsole.info('userName: %s, index: %i', userName, index);\n```\n\nOutput:\n\n```\nuserName: foo, index: 123\n```\n\nBut some browsers such as Android browser, etc. don't support it. A big problem is that all arguments except a first argument (i.e. important informations more than first one) are ignored.  \nThis polyfill implements the String Substitutions to the console that does not support it. This does nothing if the console already supports it.\n\n## Usage\n\n```html\n\u003cscript src=\"console-substitute.min\"\u003e\u003c/script\u003e\n```\n\n### Methods\n\nThe following methods support the String Substitutions:\n\n- `console.log`\n- `console.info`\n- `console.error`\n- `console.warn`\n\n#### Substitution Strings\n\nThe following substitution strings are supported:\n\n- `%o`\n- `%d`\n- `%i`\n- `%s`\n- `%f`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanseki%2Fconsole-substitute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanseki%2Fconsole-substitute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanseki%2Fconsole-substitute/lists"}