{"id":13765435,"url":"https://appleple.github.io/form-storage/","last_synced_at":"2025-05-10T21:31:00.099Z","repository":{"id":40944851,"uuid":"115474911","full_name":"appleple/form-storage","owner":"appleple","description":"A JavaScript library stores the form-data to the localstorage so you don't have to fill the form again.","archived":false,"fork":false,"pushed_at":"2022-12-12T20:51:12.000Z","size":625,"stargazers_count":162,"open_issues_count":23,"forks_count":12,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-04-26T15:02:08.023Z","etag":null,"topics":["es6","form-storage","npm"],"latest_commit_sha":null,"homepage":"https://appleple.github.io/form-storage/","language":"JavaScript","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/appleple.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-27T02:58:35.000Z","updated_at":"2023-12-17T05:00:25.000Z","dependencies_parsed_at":"2022-09-11T02:02:06.067Z","dependency_job_id":null,"html_url":"https://github.com/appleple/form-storage","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fform-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fform-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fform-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fform-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleple","download_url":"https://codeload.github.com/appleple/form-storage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224989306,"owners_count":17403407,"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":["es6","form-storage","npm"],"created_at":"2024-08-03T16:00:38.877Z","updated_at":"2024-11-17T01:31:05.614Z","avatar_url":"https://github.com/appleple.png","language":"JavaScript","funding_links":[],"categories":["Helper Components"],"sub_categories":[],"readme":"# form-storage\n\nA JavaScript library stores the form-data to the localstorage so you don't have to fill the form again.\n\n\u003cimg src=\"./docs/screenshot.png\" /\u003e\n\n## Installation\n\n### via npm\n\n```sh\nnpm install form-storage --save\n```\n\n### via yarn\n\n```sh\nyarn add form-storage\n```\n\n### via cdn\n\n```html\n\u003cscript src=\"https://unpkg.com/form-storage@1.2.0/build/form-storage.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nWhen using Browserify or Webpack.\n```js\nimport FormStorage from 'form-storage';\n```\n\nWhen you don't want to remember some fields, then you can specify the selectors like below.\n\n```js\nconst formStorage = new FormStorage('.js-form', {\n  name: 'form-basic', // you can decide local-storage name \n  ignores: [\n  '[type=\"hidden\"]',\n  '[name=\"policy\"]'\n  ]\n});\n// apply storaged data to the form.\nformStorage.apply();\n// save the form data to the storage.\nformStorage.save();\n```\n\nWhen you just want to remember 'user-name' and 'user-email'\n\n```js\nconst formStorage = new FormStorage('.js-form', {\n  name: 'form-basic',\n  includes: [\n  '[name=\"user-name\"]',\n  '[name=\"user-email\"]'\n  ]\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/appleple.github.io%2Fform-storage%2F","html_url":"https://awesome.ecosyste.ms/projects/appleple.github.io%2Fform-storage%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/appleple.github.io%2Fform-storage%2F/lists"}