{"id":15832122,"url":"https://github.com/splincode/ts-debugger","last_synced_at":"2025-09-10T17:43:10.105Z","repository":{"id":57206113,"uuid":"79099193","full_name":"splincode/ts-debugger","owner":"splincode","description":"web emulate console.log","archived":false,"fork":false,"pushed_at":"2018-11-28T10:14:33.000Z","size":6,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-16T09:18:53.424Z","etag":null,"topics":["javascript-library","typescript-library"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/splincode.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-16T08:44:20.000Z","updated_at":"2019-01-09T05:43:19.000Z","dependencies_parsed_at":"2022-08-23T19:30:49.635Z","dependency_job_id":null,"html_url":"https://github.com/splincode/ts-debugger","commit_stats":null,"previous_names":["splincode/console-logger"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splincode%2Fts-debugger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splincode%2Fts-debugger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splincode%2Fts-debugger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splincode%2Fts-debugger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splincode","download_url":"https://codeload.github.com/splincode/ts-debugger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246635983,"owners_count":20809333,"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":["javascript-library","typescript-library"],"created_at":"2024-10-05T12:40:50.674Z","updated_at":"2025-04-01T12:10:07.667Z","avatar_url":"https://github.com/splincode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Usage\n\n```bash\n$ npm install ts-debugger --save-dev\n```\n\nLogger information:\n\n```javascript\n// example.ts\nimport {Logger, Level} from \"ts-debugger\";\ndeclare let log: Logger;\n\n// show string, array, object\nlet test = {a: 1, b: 2, c: 3};\nlog.debug(\"This is object: \", test);\n\n/*\n[DEBUG] [\n    \"This is object: \",\n    {\n        \"a\": 1,\n        \"b\": 2,\n        \"c\": 3\n    }\n]\n*/\n\n\n```\n\u003cbr\u003e\n\n\u003cimg src=\"https://habrastorage.org/files/b9d/cfe/f63/b9dcfef63a3e460bb9bda83ca61d943c.png\"/\u003e\n\n\u003cbr\u003e \u003cbr\u003e\n\n\n```javascript\nlog.debug(\"This is object: \")(test);\n\n/* [DEBUG] This is object:  Object {a: 1, b: 2, c: 3} */\n```\n\n\u003cbr\u003e\n\u003cimg src=\"https://habrastorage.org/files/fd8/73f/2ac/fd873f2aceba4754a4650e8d1f20a87a.png\"/\u003e\n\u003cbr\u003e\n\n### Warning, Error\n\n\u003cbr\u003e\n\u003cimg src=\"https://habrastorage.org/files/dd5/3c0/612/dd53c061294c4b7baccbbce9428fb7a3.png\"/\u003e\n\n\u003cbr\u003e\n\u003cimg src=\"https://habrastorage.org/files/634/7b8/c35/6347b8c3531e436f97c30504d6ac0588.png\"/\u003e\n\n\n### Example\n\n```javascript\n// polyfills.ts\n\nimport {Logger, Level} from \"ts-debugger\";\nimport \"core-js/client/shim\";\nimport \"reflect-metadata\";\nimport \"ts-helpers\";\nrequire(\"zone.js/dist/zone\");\n\ndeclare let log: Logger;\ndeclare let window: any;\n\nif (process.env.TYPE === \"prod\") {\n    // Production\n    window.log = new Logger(Level.INFO);\n} else {\n    // Development\n    window.log = new Logger();\n    Error[\"stackTraceLimit\"] = Infinity;\n    require(\"zone.js/dist/long-stack-trace-zone\");\n}\n\nlog.debug(\n    `Level debug: ${log[\"levelMin\"]}`,\n    `TYPE = ${process.env.TYPE}`,\n    `THEME = ${process.env.THEME}`\n)();\n\n```\n\n\u003cimg src=\"https://habrastorage.org/files/78e/723/9cd/78e7239cdb45496ca35108997a0a03da.png\"/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplincode%2Fts-debugger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplincode%2Fts-debugger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplincode%2Fts-debugger/lists"}