{"id":22382431,"url":"https://github.com/jcoreio/redux-form-normalize-on-blur","last_synced_at":"2025-07-31T03:31:49.287Z","repository":{"id":38150730,"uuid":"117287321","full_name":"jcoreio/redux-form-normalize-on-blur","owner":"jcoreio","description":"a redux-form Field component that supports a normalizeOnBlur property","archived":false,"fork":false,"pushed_at":"2024-03-05T23:17:38.000Z","size":4355,"stargazers_count":5,"open_issues_count":26,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-10T10:48:43.849Z","etag":null,"topics":["formatted-input","normalize","react","redux-form"],"latest_commit_sha":null,"homepage":null,"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/jcoreio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-01-12T20:57:48.000Z","updated_at":"2024-03-05T23:16:46.000Z","dependencies_parsed_at":"2024-06-21T02:18:05.445Z","dependency_job_id":"4a091dfe-a129-4c72-afac-9b9c9fa2ff91","html_url":"https://github.com/jcoreio/redux-form-normalize-on-blur","commit_stats":{"total_commits":259,"total_committers":4,"mean_commits":64.75,"dds":0.250965250965251,"last_synced_commit":"c52dd37a3f5d20183abcb2b7cc1e6b3f3eaafd64"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fredux-form-normalize-on-blur","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fredux-form-normalize-on-blur/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fredux-form-normalize-on-blur/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fredux-form-normalize-on-blur/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcoreio","download_url":"https://codeload.github.com/jcoreio/redux-form-normalize-on-blur/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228209939,"owners_count":17885595,"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":["formatted-input","normalize","react","redux-form"],"created_at":"2024-12-05T00:12:59.374Z","updated_at":"2024-12-05T00:12:59.488Z","avatar_url":"https://github.com/jcoreio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redux-form-normalize-on-blur\n\n[![Build Status](https://travis-ci.org/jcoreio/redux-form-normalize-on-blur.svg?branch=master)](https://travis-ci.org/jcoreio/redux-form-normalize-on-blur)\n[![Coverage Status](https://codecov.io/gh/jcoreio/redux-form-normalize-on-blur/branch/master/graph/badge.svg)](https://codecov.io/gh/jcoreio/redux-form-normalize-on-blur)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![npm version](https://badge.fury.io/js/redux-form-normalize-on-blur.svg)](https://badge.fury.io/js/redux-form-normalize-on-blur)\n\na `redux-form` `Field` component that supports a `normalizeOnBlur` property\n\n# Usage\n\n```sh\nnpm install --save redux-form-normalize-on-blur\n```\n\n```js\nconst { Field } = require('redux-form-normalize-on-blur')\n```\n\nor\n\n```js\nconst { Field } = require('redux-form-normalize-on-blur/immutable')\n```\n\n## Example\n\nThe following field will trim its text when it loses focus:\n\n```js\n\u003cField\n  name=\"name\"\n  normalizeOnBlur={(value) =\u003e value \u0026\u0026 value.trim()}\n  component={YourInputComponent}\n/\u003e\n```\n\n## API\n\n### `Field`\n\nHas the same API as `redux-form`'s `Field`, but it accepts an additional `normalizeOnBlur` property:\n\n#### `normalizeOnBlur?: (value: any) =\u003e any`\n\nFunction that takes the current value and returns the normalized value.\nNOTE: this happens before `parse` or `normalize`!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcoreio%2Fredux-form-normalize-on-blur","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcoreio%2Fredux-form-normalize-on-blur","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcoreio%2Fredux-form-normalize-on-blur/lists"}