{"id":26497718,"url":"https://github.com/bugwheels94/react-keypress.js-wrapper","last_synced_at":"2026-04-19T03:32:00.951Z","repository":{"id":97880479,"uuid":"314685061","full_name":"bugwheels94/react-keypress.js-wrapper","owner":"bugwheels94","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-20T22:47:05.000Z","size":380,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-20T14:06:00.141Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/bugwheels94.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-20T22:31:46.000Z","updated_at":"2020-11-20T22:47:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"4fb01d3a-9523-46e6-8cab-54f07070fafa","html_url":"https://github.com/bugwheels94/react-keypress.js-wrapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bugwheels94/react-keypress.js-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugwheels94%2Freact-keypress.js-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugwheels94%2Freact-keypress.js-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugwheels94%2Freact-keypress.js-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugwheels94%2Freact-keypress.js-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bugwheels94","download_url":"https://codeload.github.com/bugwheels94/react-keypress.js-wrapper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugwheels94%2Freact-keypress.js-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31993719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":"2025-03-20T13:57:30.223Z","updated_at":"2026-04-19T03:32:00.941Z","avatar_url":"https://github.com/bugwheels94.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\n  This is a library to Bind Keyboard shortcuts to react components\n\n## Installation\n\n    npm i react-keypress.js-wrapper\n\n## API\n\n  This library provides 3 components.\n\n  1. Context Provider Component `KeyboardShortcutsProvider`\n\n         import { KeyboardShortcutsProvider } from 'react-keypress.js-wrapper'\n\n      You need to wrap it at the very top of your React App, preferably `App.js`. This just creates the context and passes it down to your app so that all of the shortcuts are stored somewhere.\n\n  1. HOC Component `withKeyboardShortcuts`\n\n         import { withKeyboardShortcuts } from 'react-keypress.js-wrapper'\n\n      This is just a higher order component. This will provide all of the current active shortcuts to the passed components.\n\n          function Component({\n            keyboardShortcuts\n          }) {\n            // keyboardShortcuts will be an Array of Objects\n            // value is passed shortcut value and \n            // description is passed description value\n          }\n          withKeyboardShortcuts(Component)\n\n  1. Shortcut Component `KeyboardShortcuts`\n\n         import { KeyboardShortcuts } from 'react-keypress.js-wrapper'\n\n      Use this component to define the `combo` with the `callback` and the `description`. Use as\n\n         \u003cKeyboardShortcuts combo=\"shift r\" callback={any_function} description=\"Magical Shortcut\" /\u003e\n\n## Development\n\n  The code is stored inside `src/lib` and the rest of the code is just to check and run the app based upon the library.\n\n## Publish to npm\n\n  Run `npm run build-lib` followed by `npm publish`\n\n## Test\n\n  Run `npm start` to see the app based upon this library","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugwheels94%2Freact-keypress.js-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugwheels94%2Freact-keypress.js-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugwheels94%2Freact-keypress.js-wrapper/lists"}