{"id":19589786,"url":"https://github.com/supercharge/goodies","last_synced_at":"2025-04-27T12:33:06.560Z","repository":{"id":50587707,"uuid":"234286734","full_name":"supercharge/goodies","owner":"supercharge","description":"Helper and utility functions for Node.js","archived":false,"fork":false,"pushed_at":"2023-10-17T06:56:23.000Z","size":127,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-17T01:26:18.046Z","etag":null,"topics":["hacktoberfest","helper-functions","nodejs","supercharge"],"latest_commit_sha":null,"homepage":"https://superchargejs.com/docs/goodies","language":"TypeScript","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/supercharge.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-01-16T09:46:06.000Z","updated_at":"2022-09-08T16:22:13.000Z","dependencies_parsed_at":"2024-06-19T00:10:39.845Z","dependency_job_id":"3b65a13b-708d-442c-9b59-4865649438e8","html_url":"https://github.com/supercharge/goodies","commit_stats":{"total_commits":137,"total_committers":3,"mean_commits":"45.666666666666664","dds":"0.27007299270072993","last_synced_commit":"d3ff7e32a7b335ecebca5037608533aa24f47d6f"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supercharge%2Fgoodies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supercharge%2Fgoodies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supercharge%2Fgoodies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supercharge%2Fgoodies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/supercharge","download_url":"https://codeload.github.com/supercharge/goodies/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251138934,"owners_count":21541976,"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":["hacktoberfest","helper-functions","nodejs","supercharge"],"created_at":"2024-11-11T08:21:02.289Z","updated_at":"2025-04-27T12:33:06.210Z","avatar_url":"https://github.com/supercharge.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\r\n  \u003ca href=\"https://superchargejs.com\"\u003e\r\n    \u003cimg width=\"471\" style=\"max-width:100%;\" src=\"https://superchargejs.com/images/supercharge-text.svg\" /\u003e\r\n  \u003c/a\u003e\r\n  \u003cbr/\u003e\r\n  \u003cbr/\u003e\r\n  \u003cp\u003e\r\n    \u003ch3\u003eGoodies\u003c/h3\u003e\r\n  \u003c/p\u003e\r\n  \u003cp\u003e\r\n    Helper and utility functions for Node.js.\r\n  \u003c/p\u003e\r\n  \u003cbr/\u003e\r\n  \u003cp\u003e\r\n    \u003ca href=\"#installation\"\u003e\u003cstrong\u003eInstallation\u003c/strong\u003e\u003c/a\u003e ·\r\n    \u003ca href=\"#docs\"\u003e\u003cstrong\u003eDocs\u003c/strong\u003e\u003c/a\u003e ·\r\n    \u003ca href=\"#api\"\u003e\u003cstrong\u003eAPI\u003c/strong\u003e\u003c/a\u003e\r\n  \u003c/p\u003e\r\n  \u003cbr/\u003e\r\n  \u003cbr/\u003e\r\n  \u003cp\u003e\r\n    \u003ca href=\"https://www.npmjs.com/package/@supercharge/goodies\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@supercharge/goodies.svg\" alt=\"Latest Version\"\u003e\u003c/a\u003e\r\n    \u003ca href=\"https://www.npmjs.com/package/@supercharge/goodies\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/@supercharge/goodies.svg\" alt=\"Monthly downloads\"\u003e\u003c/a\u003e\r\n  \u003c/p\u003e\r\n  \u003cp\u003e\r\n    \u003cem\u003eFollow \u003ca href=\"http://twitter.com/marcuspoehls\"\u003e@marcuspoehls\u003c/a\u003e and \u003ca href=\"http://twitter.com/superchargejs\"\u003e@superchargejs\u003c/a\u003e for updates!\u003c/em\u003e\r\n  \u003c/p\u003e\r\n\u003c/div\u003e\r\n\r\n---\r\n\r\n## Introduction\r\nThe `@supercharge/goodies` package provides a handful of useful helper functions for Node.js and JavaScript, like an async `tap` function.\r\n\r\n\r\n## Installation\r\n\r\n```\r\nnpm i @supercharge/goodies\r\n```\r\n\r\n\r\n## Docs\r\nFind all the [details for `@supercharge/goodies` in the extensive Supercharge docs](https://superchargejs.com/docs/goodies).\r\n\r\n\r\n## API\r\nUsing `@supercharge/goodies` is pretty straightforward. The package exports a handful of methods that you can reach for when requiring the package:\r\n\r\n\r\n#### tap(value, callback)\r\nReturns the `value` after running the `callback`. The callback receives the value as an argument.\r\n\r\n```js\r\nconst { tap } = require('@supercharge/goodies')\r\n\r\nreturn tap(await User.find(1), async (user) =\u003e {\r\n  await user.subscribeToNewsletter()\r\n})\r\n\r\n// returns the user with ID 1\r\n```\r\n\r\n\r\n#### upon(value, callback)\r\nReturns the result of the callback. The callback receives the value as an argument.\r\n\r\n```js\r\nconst { upon } = require('@supercharge/goodies')\r\n\r\nreturn upon(await User.find(1), async (user) =\u003e {\r\n  return user.email\r\n})\r\n\r\n// user@email.com\r\n```\r\n\r\n\r\n## Contributing\r\nDo you miss a goodie function? We very much appreciate your contribution! Please send in a pull request 😊\r\n\r\n1.  Create a fork\r\n2.  Create your feature branch: `git checkout -b my-feature`\r\n3.  Commit your changes: `git commit -am 'Add some feature'`\r\n4.  Push to the branch: `git push origin my-new-feature`\r\n5.  Submit a pull request 🚀\r\n\r\n\r\n## License\r\nMIT © [Supercharge](https://superchargejs.com)\r\n\r\n---\r\n\r\n\u003e [superchargejs.com](https://superchargejs.com) \u0026nbsp;\u0026middot;\u0026nbsp;\r\n\u003e GitHub [@supercharge](https://github.com/supercharge) \u0026nbsp;\u0026middot;\u0026nbsp;\r\n\u003e Twitter [@superchargejs](https://twitter.com/superchargejs)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupercharge%2Fgoodies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupercharge%2Fgoodies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupercharge%2Fgoodies/lists"}