{"id":20088166,"url":"https://github.com/jacobbubu/dnodehook","last_synced_at":"2026-05-13T03:08:27.573Z","repository":{"id":145984708,"uuid":"50173406","full_name":"jacobbubu/dnodeHook","owner":"jacobbubu","description":"A quick demo to show how could we attach `pre` or `post` hooks to dnode methods.","archived":false,"fork":false,"pushed_at":"2016-01-22T10:05:48.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T14:48:30.020Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/jacobbubu.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":"2016-01-22T10:05:40.000Z","updated_at":"2016-01-22T10:05:48.000Z","dependencies_parsed_at":"2023-04-18T17:54:25.688Z","dependency_job_id":null,"html_url":"https://github.com/jacobbubu/dnodeHook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jacobbubu/dnodeHook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobbubu%2FdnodeHook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobbubu%2FdnodeHook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobbubu%2FdnodeHook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobbubu%2FdnodeHook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacobbubu","download_url":"https://codeload.github.com/jacobbubu/dnodeHook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobbubu%2FdnodeHook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32965859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"online","status_checked_at":"2026-05-13T02:00:07.132Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-13T16:12:24.911Z","updated_at":"2026-05-13T03:08:27.556Z","avatar_url":"https://github.com/jacobbubu.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\nThis a quick demo to show how could we attach `pre` or `post` hooks to [dnode](https://github.com/substack/dnode) methods.\n\n## Install \u0026 Run\n\n``` bash\nnpm i\n```\n\nRun a vanilla [dnode](https://github.com/substack/dnode) demo.\n``` bash\n\u003e npm test withoutHook.coffee\n... some npm output\n--original func calls\nbeep =\u003e BOOP\n```\n\nAnd then you can run the hooked version:\n``` bash\n\u003e npm test withHook.coffee\n... some npm output\nbefore transform\n--original func calls\nafter transform!\nbeep =\u003e BOOP\n```\n\n## How It works\n\nI'm using [grappling-hook](https://github.com/keystonejs/grappling-hook) to do the hook things and just make the hooked object as clean as that could be transfered to the client.\n\nSee the source for the implementations.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobbubu%2Fdnodehook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacobbubu%2Fdnodehook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobbubu%2Fdnodehook/lists"}