{"id":18975100,"url":"https://github.com/bufferapp/buffer-js-keywrapper","last_synced_at":"2026-05-04T14:42:30.876Z","repository":{"id":57100699,"uuid":"111616415","full_name":"bufferapp/buffer-js-keywrapper","owner":"bufferapp","description":"🎁 Wrap your Redux Actions in a nice namespace bow","archived":false,"fork":false,"pushed_at":"2017-11-22T17:46:48.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":27,"default_branch":"master","last_synced_at":"2024-04-14T06:08:51.918Z","etag":null,"topics":["javascript","redux"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@bufferapp/keywrapper","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/bufferapp.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":"2017-11-22T00:19:35.000Z","updated_at":"2017-11-22T17:49:11.000Z","dependencies_parsed_at":"2022-08-20T17:30:48.444Z","dependency_job_id":null,"html_url":"https://github.com/bufferapp/buffer-js-keywrapper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufferapp%2Fbuffer-js-keywrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufferapp%2Fbuffer-js-keywrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufferapp%2Fbuffer-js-keywrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufferapp%2Fbuffer-js-keywrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bufferapp","download_url":"https://codeload.github.com/bufferapp/buffer-js-keywrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239972575,"owners_count":19727402,"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":["javascript","redux"],"created_at":"2024-11-08T15:17:21.166Z","updated_at":"2026-04-08T18:30:19.042Z","avatar_url":"https://github.com/bufferapp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @bufferapp/keywrapper\n\n[![npm version](https://badge.fury.io/js/%40bufferapp%2Fkeywrapper.svg)](https://badge.fury.io/js/%40bufferapp%2Fkeywrapper) [![Build Status](https://travis-ci.org/bufferapp/buffer-js-keywrapper.svg?branch=0.1.0)](https://travis-ci.org/bufferapp/buffer-js-keywrapper)\n\nA quick way to wrap your Redux actions in a namespace.\n\nWhen dealing with larger Redux applications, this can help avoid generic\naction names from causing side effects. This will return an object with\nnamespaced string constants given a string namespace and an Object or Array.\nSee usage examples below for more info.\n\n## Install\n\n```\nnpm install @bufferapp/keywrapper\n```\n\n## Usage\n\n```js\nimport keyWrapper from '@bufferapp/keywrapper'\n\n// Use an Object...\nconst actions = keyWrapper('QUEUE', {\n  POST_DELETE: 0,\n  POST_SHARE_NOW: 0\n})\n\n// ...or an Array\nconst otherActions = keyWrapper('QUEUE', [\n  'POST_DELETE',\n  'POST_SHARE_NOW'\n])\n\nconsole.log(actions)\n/*\n{\n  POST_DELETE: 'QUEUE__POST_DELETE',\n  POST_SHARE_NOW: 'QUEUE__POST_SHARE_NOW',\n}\n*/\n\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbufferapp%2Fbuffer-js-keywrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbufferapp%2Fbuffer-js-keywrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbufferapp%2Fbuffer-js-keywrapper/lists"}