{"id":22828675,"url":"https://github.com/busterc/debugging","last_synced_at":"2025-03-31T01:17:53.772Z","repository":{"id":74997311,"uuid":"88233783","full_name":"busterc/debugging","owner":"busterc","description":":eyes: this.debugging = debug + callsites + derived namespacing","archived":false,"fork":false,"pushed_at":"2020-06-03T08:50:34.000Z","size":996,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T12:56:35.983Z","etag":null,"topics":["callsite","console-log","debug","debugger","debugging","logger","stack","stdout","trace"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/busterc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-14T04:47:38.000Z","updated_at":"2023-09-08T17:23:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"70e8247d-b7de-440d-8ca7-c882247f4bdc","html_url":"https://github.com/busterc/debugging","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"f794ca3f5c24d98be2fe518861f891d47b70c15f"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Fdebugging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Fdebugging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Fdebugging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Fdebugging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/busterc","download_url":"https://codeload.github.com/busterc/debugging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246399803,"owners_count":20770909,"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":["callsite","console-log","debug","debugger","debugging","logger","stack","stdout","trace"],"created_at":"2024-12-12T19:11:22.995Z","updated_at":"2025-03-31T01:17:53.749Z","avatar_url":"https://github.com/busterc.png","language":"JavaScript","readme":"# debugging [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url] [![Greenkeeper badge][greenkeeper-image]][greenkeeper-url]\n\n\u003e this.debugging = [debug](https://github.com/visionmedia/debug) + [callsites](https://github.com/sindresorhus/callsites) + derived namespacing\n\n## Installation\n\n```sh\n$ npm install --save debugging\n```\n\n## Usage\n\n```js\n'use strict';\n\nvar Debugging = require('debugging');\n\nvar debug = new Debugging('app');\ndebug('info');\n// =\u003e app info\n\nvar debugAppAuth = debug.another('auth');\ndebugAppAuth('more info');\n// =\u003e app:auth more info\n\n(function someFunction() {\n  debugAppAuth.source(debugAppAuth.callsites()[0], 'even more info');\n  // =\u003e app:auth some-dir/some-file.js someFunction 14 even more info\n})();\n```\n\n## API\n\n## Debugging([namespace])\n\n- #### namespace\n\n  Type `String`\n\n  The initial namespace to be applied to the debug logger; the default is 'app'.\n\n### another(namespace) : Debugging\n\n- #### namespace\n\n  _Required_\n  Type `String`\n\n  A namespace to be appended to the current debug namespace\n\n### source(callsite, [info])\n\n    Log with callsite details\n\n- #### callsite\n\n  _Required_\n  Type: `Object`\n\n- #### info\n\n  Type: `Any`\n\n## License\n\nISC © [Buster Collings](https://about.me/buster)\n\n[npm-image]: https://badge.fury.io/js/debugging.svg\n[npm-url]: https://npmjs.org/package/debugging\n[travis-image]: https://travis-ci.org/busterc/debugging.svg?branch=master\n[travis-url]: https://travis-ci.org/busterc/debugging\n[daviddm-image]: https://david-dm.org/busterc/debugging.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/busterc/debugging\n[coveralls-image]: https://coveralls.io/repos/busterc/debugging/badge.svg\n[coveralls-url]: https://coveralls.io/r/busterc/debugging\n[greenkeeper-image]: https://badges.greenkeeper.io/busterc/debugging.svg\n[greenkeeper-url]: https://greenkeeper.io/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusterc%2Fdebugging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbusterc%2Fdebugging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusterc%2Fdebugging/lists"}