{"id":19330708,"url":"https://github.com/versent/action-names","last_synced_at":"2025-04-22T23:31:34.965Z","repository":{"id":36632321,"uuid":"40938579","full_name":"Versent/action-names","owner":"Versent","description":"Standard Action names for Flux","archived":false,"fork":false,"pushed_at":"2017-09-27T09:49:48.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-19T17:18:42.555Z","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":"mrayy/mrayGStreamerUnity","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Versent.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":"2015-08-18T00:01:11.000Z","updated_at":"2021-10-27T13:26:03.000Z","dependencies_parsed_at":"2022-07-09T16:30:57.997Z","dependency_job_id":null,"html_url":"https://github.com/Versent/action-names","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/Versent%2Faction-names","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Versent%2Faction-names/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Versent%2Faction-names/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Versent%2Faction-names/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Versent","download_url":"https://codeload.github.com/Versent/action-names/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250340234,"owners_count":21414503,"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":[],"created_at":"2024-11-10T02:37:41.785Z","updated_at":"2025-04-22T23:31:34.716Z","avatar_url":"https://github.com/Versent.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Standard Action Names for Flux\n\n[ ![Codeship Status for Versent/action-names](https://codeship.com/projects/5a75b0f0-284e-0133-aab6-66f03b379c4a/status?branch=master)](https://codeship.com/projects/97650)\n\n## Install\n\n```\nnpm install action-names --save-dev\n```\n\n## Usage\n\n```\nvar actionNames = require('action-names');\n\nvar names = actionNames('users');\n```\n\n`names` will contain an object:\n\n```\n{\n  USERS_FETCH_START:   'USERS_FETCH_START',\n  USERS_FETCH_SUCCESS: 'USERS_FETCH_SUCCESS',\n  USERS_FETCH_ERROR:   'USERS_FETCH_ERROR',\n\n  USERS_UPDATE_START:   'USERS_UPDATE_START',\n  USERS_UPDATE_SUCCESS: 'USERS_UPDATE_SUCCESS',\n  USERS_UPDATE_ERROR:   'USERS_UPDATE_ERROR',\n\n  USERS_CREATE_START:   'USERS_CREATE_START',\n  USERS_CREATE_SUCCESS: 'USERS_CREATE_SUCCESS',\n  USERS_CREATE_ERROR:   'USERS_CREATE_ERROR',\n\n  USERS_DELETE_START:   'USERS_DELETE_START',\n  USERS_DELETE_SUCCESS: 'USERS_DELETE_SUCCESS',\n  USERS_DELETE_ERROR:   'USERS_DELETE_ERROR',\n\n  // Object also contains aliases\n  fetchStart:   'USERS_FETCH_START',\n  fetchSuccess: 'USERS_FETCH_SUCCESS',\n  fetchError:   'USERS_FETCH_ERROR',\n\n  updateStart:   'USERS_UPDATE_START',\n  updateSuccess: 'USERS_UPDATE_SUCCESS',\n  updateError:   'USERS_UPDATE_ERROR',\n\n  createStart:   'USERS_CREATE_START',\n  createSuccess: 'USERS_CREATE_SUCCESS',\n  createError:   'USERS_CREATE_ERROR',\n\n  deleteStart:   'USERS_DELETE_START',\n  deleteSuccess: 'USERS_DELETE_SUCCESS',\n  deleteError:   'USERS_DELETE_ERROR',\n}\n```\n\n## Config\n\nThis modules takes a second argument:\n\n```js\nvar names = actionNames('users', config);\n```\n\n`config` is an object with the following options:\n\n`config.addAlias` [true] adds the action aliases e.g. `fetchStart`\n\n## Test\n\n```\nnpm i\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fversent%2Faction-names","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fversent%2Faction-names","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fversent%2Faction-names/lists"}