{"id":17399260,"url":"https://github.com/feross/call-log","last_synced_at":"2025-09-13T01:31:52.584Z","repository":{"id":11685201,"uuid":"14196267","full_name":"feross/call-log","owner":"feross","description":"Instrument a JavaScript class (or object) so that anytime a method function is called it gets logged to the console.","archived":false,"fork":false,"pushed_at":"2020-10-27T03:44:51.000Z","size":68,"stargazers_count":35,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-03T02:53:09.341Z","etag":null,"topics":[],"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/feross.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":"2013-11-07T06:38:06.000Z","updated_at":"2024-08-31T08:57:25.000Z","dependencies_parsed_at":"2022-08-30T01:41:16.550Z","dependency_job_id":null,"html_url":"https://github.com/feross/call-log","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fcall-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fcall-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fcall-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fcall-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feross","download_url":"https://codeload.github.com/feross/call-log/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232806971,"owners_count":18579339,"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":[],"created_at":"2024-10-16T15:14:20.261Z","updated_at":"2025-01-07T00:57:40.031Z","avatar_url":"https://github.com/feross.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# call-log [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]\n\n[travis-image]: https://img.shields.io/travis/feross/call-log/master.svg\n[travis-url]: https://travis-ci.org/feross/call-log\n[npm-image]: https://img.shields.io/npm/v/call-log.svg\n[npm-url]: https://npmjs.org/package/call-log\n[downloads-image]: https://img.shields.io/npm/dm/call-log.svg\n[downloads-url]: https://npmjs.org/package/call-log\n[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[standard-url]: https://standardjs.com\n\n#### Instrument a JavaScript class (or object) so that anytime a method function is called it gets logged to the console.\n\n![cat](https://raw.githubusercontent.com/feross/call-log/master/img.jpg)\n\n## install\n\n```\nnpm install call-log\n```\n\nThis module works in the browser with [browserify](http://browserify.org/).\n\n**Note:** If you're **NOT** using browserify, then use the included standalone file\n`call-log.min.js`. This exports a `CallLog` constructor on `window`.\n\n## usage\n\n```js\nvar callLog = require('call-log')\n\nfunction Cat () {}\nCat.prototype.meow = function (sound) { return sound }\n\n// Add instrumentation to Cat\ncallLog(Cat)\n\n// Use the cat\nvar cat = new Cat()\ncat.meow()\ncat.meow('MEOAAAAWWW!')\n\n// Prints:\n// \"called meow\"\n// \"called meow\", \"MEOAAAAWWW!\"\n\n```\n\n## license\n\nMIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fcall-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeross%2Fcall-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fcall-log/lists"}