{"id":21897401,"url":"https://github.com/adriancmiranda/trace","last_synced_at":"2025-03-22T05:17:18.822Z","repository":{"id":19049979,"uuid":"22276088","full_name":"adriancmiranda/trace","owner":"adriancmiranda","description":"Displays expressions, or writes to log files, while debugging. ","archived":false,"fork":false,"pushed_at":"2018-12-03T15:38:05.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T05:58:25.893Z","etag":null,"topics":["console","debug","javascript","logging","trace"],"latest_commit_sha":null,"homepage":"","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/adriancmiranda.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":"2014-07-26T01:52:02.000Z","updated_at":"2018-12-02T22:20:32.000Z","dependencies_parsed_at":"2022-07-23T02:16:14.917Z","dependency_job_id":null,"html_url":"https://github.com/adriancmiranda/trace","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriancmiranda%2Ftrace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriancmiranda%2Ftrace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriancmiranda%2Ftrace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriancmiranda%2Ftrace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adriancmiranda","download_url":"https://codeload.github.com/adriancmiranda/trace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244907458,"owners_count":20529868,"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":["console","debug","javascript","logging","trace"],"created_at":"2024-11-28T14:17:10.520Z","updated_at":"2025-03-22T05:17:18.803Z","avatar_url":"https://github.com/adriancmiranda.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"trace\n=====\n\n\u003e Displays expressions, or writes to log files, while debugging. A single trace statement can support multiple arguments. If any argument in a trace statement includes a data type other than a String, the trace function invokes the associated toString() method for that data type. For example, if the argument is a Boolean value the trace function invokes Boolean.toString() and displays the return value.\n\n[![deps][deps]][deps-url]\n[![depsci][depsci]][depsci-url]\n[![travis][travis]][travis-url]\n[![appveyor][appveyor]][appveyor-url]\n[![circleci][circleci]][circleci-url]\n[![codacy][codacy]][codacy-url]\n\n\n## How to install __trace__ in your project\n\n### bower\n\n```bash\nbower install --save-dev adriancmiranda/trace\n```\n\n### cdn\n\n\n#### uncompressed\n\n```javascript\n\u003cscript src=\"https://rawgit.com/adriancmiranda/trace/master/index.js\"\u003e\u003c/script\u003e\n```\n\n\n#### compressed\n\n```javascript\n\u003cscript src=\"https://rawgit.com/adriancmiranda/trace/master/index.min.js\"\u003e\u003c/script\u003e\n```\n\n\n## Usage\n\nJoin `debug` query in URL (e.g. `\u003curl\u003e?debug=*`) or set `console.enabled = true;`  in your `JavaScript` code to show your logs and then use the [console](https://developer.mozilla.org/en/docs/Web/API/console) normally.\n\n`P.S.` you can also usage the `trace` method as an alias to [console.log](https://developer.mozilla.org/en-US/docs/Web/API/Console/log) (:zap: flash feelings :sunglasses:)\n\n### ⚫️ **trace(...arguments):void**\n\n#### parameters\n\n`... arguments` — One or more (comma separated) expressions to evaluate. For multiple expressions, a space is inserted between each expression in the output.\n\n\n#### example\n\nThe following example uses the `trace()` method to print a simple string. Generally, the message will be printed to a _`Developer Tools \u003e Console`_.\n\n```javascript\ntrace(\"Hello\", \"World\");\n```\n### ⚫️ **console.enabled:boolean**\nA Boolean value that indicates whether the console is enabled.\n\n### ⚫️ **console.history:array**\n[read-only] Contents of the history stack\n\n### ⚫️ **console.scrollback:uint**\n\nThe number of lines of scrollback buffer to keep above the visible part of the screen.\n\n### ⚫️ **console.push(...arguments):void**\n\n#### parameters\n\n`... arguments` — One or more (comma separated) expressions to evaluate. For multiple expressions, a space is inserted between each expression in the output.\n\n### ⚫️ **console.flush():void**\n\nTo clear the appended log with `console.push` method\n\n\n## License\n\n[MIT][license-url]\n\n\n\u003c!-- links --\u003e\n\n[deps]: https://david-dm.org/adriancmiranda/trace.svg\n[deps-url]: https://david-dm.org/adriancmiranda/trace\n\n[depsci]: https://dependencyci.com/github/adriancmiranda/trace/badge\n[depsci-url]: https://dependencyci.com/github/adriancmiranda/trace\n\n[travis]: https://travis-ci.org/adriancmiranda/trace.svg?branch=master\n[travis-url]: https://travis-ci.org/adriancmiranda/trace\n\n[appveyor]: https://ci.appveyor.com/api/projects/status/hucvow1n0t3q3le3/branch/master?svg=true\n[appveyor-url]: https://ci.appveyor.com/project/adriancmiranda/trace/branch/master\n\n[circleci]: https://circleci.com/gh/adriancmiranda/trace/tree/master.svg?style=shield\n[circleci-url]:  https://circleci.com/gh/adriancmiranda/trace/tree/master\n\n[codacy]: https://api.codacy.com/project/badge/Grade/ac6b06afbcc14abd8ea55356adc45cd7\n[codacy-url]: https://www.codacy.com/app/adriancmiranda/trace?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=adriancmiranda/trace\u0026amp;utm_campaign=Badge_Grade\n\n[license-url]: https://github.com/adriancmiranda/trace/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadriancmiranda%2Ftrace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadriancmiranda%2Ftrace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadriancmiranda%2Ftrace/lists"}