{"id":18256132,"url":"https://github.com/serapath/stackframes","last_synced_at":"2025-04-08T22:27:02.223Z","repository":{"id":57369208,"uuid":"265909319","full_name":"serapath/stackframes","owner":"serapath","description":"stackframes https://www.npmjs.com/package/stackframes","archived":false,"fork":false,"pushed_at":"2020-05-25T14:58:26.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T08:42:36.654Z","etag":null,"topics":["callsite","callsites","errorstack","framestack","stack","stackerror","stackframe","stackframes","stacks","stacksite","stacksites","stacktrace","stacktraces","trace","tracert"],"latest_commit_sha":null,"homepage":"https://serapath.github.io/stackframes/","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/serapath.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":"2020-05-21T17:21:51.000Z","updated_at":"2020-05-25T14:58:28.000Z","dependencies_parsed_at":"2022-09-09T13:10:38.055Z","dependency_job_id":null,"html_url":"https://github.com/serapath/stackframes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fstackframes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fstackframes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fstackframes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fstackframes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serapath","download_url":"https://codeload.github.com/serapath/stackframes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247937265,"owners_count":21021221,"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","callsites","errorstack","framestack","stack","stackerror","stackframe","stackframes","stacks","stacksite","stacksites","stacktrace","stacktraces","trace","tracert"],"created_at":"2024-11-05T10:20:09.196Z","updated_at":"2025-04-08T22:27:02.208Z","avatar_url":"https://github.com/serapath.png","language":"JavaScript","readme":"# stackframes\n[![Sauce Test Status](https://saucelabs.com/buildstatus/serapath)](https://app.saucelabs.com/u/serapath)\n\nhttps://www.npmjs.com/package/stackframes\n\nhttps://serapath.github.io/stackframes/\n\n\n---\n[![Sauce Test Status](https://saucelabs.com/browser-matrix/serapath.svg)](https://saucelabs.com/u/serapath)\n\n\n# use\n`npm install stackframes`\n```js\nconst stackframes = require('stackframes')\n\ndemo()\n\nfunction demo () {\n  var error\n\n  try {\n    function foobarbaz () { throw new Error('foobar') }\n    function bazbarfoo () { foobarbaz() }\n    bazbarfoo()\n  } catch (e) {\n    error = e\n  }\n\n  example()\n  function example () { foo() }\n  function foo () { bar() }\n  function bar () { baz() }\n  function baz () {\n\n    const defaultFlags = stackframes.defaultFlags\n    console.log(defaultFlags)\n    const flags = defaultFlags.filter((_, i) =\u003e i%2) // take every second flag\n\n    console.log('0', stackframes(error, flags))\n    console.log('1', stackframes())\n    console.log('2', stackframes({ exclude: foo }))\n    console.log('3', stackframes({ exclude: example }))\n    console.log('4', stackframes({ depths: 2, exclude: baz }))\n    console.log('5', stackframes({ depths: 2 }))\n    console.log('6', stackframes(null, flags))\n  }\n}\n```\n\n## supported by\n![Testing Powered By SauceLabs](https://raw.githubusercontent.com/saucelabs/opensource/master/assets/powered-by-saucelabs-badge-white.svg?sanitize=true \"Testing Powered By SauceLabs\")\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Fstackframes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserapath%2Fstackframes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Fstackframes/lists"}