{"id":21521618,"url":"https://github.com/zzarcon/superagent-serializer","last_synced_at":"2025-04-09T22:22:24.742Z","repository":{"id":57374666,"uuid":"47288532","full_name":"zzarcon/superagent-serializer","owner":"zzarcon","description":"Superagent plugin to convert server payload into different cases","archived":false,"fork":false,"pushed_at":"2017-10-03T11:22:16.000Z","size":6,"stargazers_count":19,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T00:15:53.367Z","etag":null,"topics":["normalization","normalize","serialization","serializer","server-payload","superagent","superagent-plugin","superagent-serializer"],"latest_commit_sha":null,"homepage":"","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/zzarcon.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":"2015-12-02T21:05:54.000Z","updated_at":"2024-10-10T12:57:19.000Z","dependencies_parsed_at":"2022-08-29T21:01:39.289Z","dependency_job_id":null,"html_url":"https://github.com/zzarcon/superagent-serializer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzarcon%2Fsuperagent-serializer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzarcon%2Fsuperagent-serializer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzarcon%2Fsuperagent-serializer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzarcon%2Fsuperagent-serializer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zzarcon","download_url":"https://codeload.github.com/zzarcon/superagent-serializer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248120511,"owners_count":21050963,"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":["normalization","normalize","serialization","serializer","server-payload","superagent","superagent-plugin","superagent-serializer"],"created_at":"2024-11-24T01:07:46.827Z","updated_at":"2025-04-09T22:22:24.716Z","avatar_url":"https://github.com/zzarcon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/superagent-serializer.svg)](https://badge.fury.io/js/superagent-serializer)\n\n# superagent-serializer\n\u003e Superagent plugin to convert server payload into different cases\n\n[superagent](https://github.com/visionmedia/superagent) plugin that brings you the hability of convert your server payload into different cases\n\n# Installation\n\n`$ npm i superagent-serializer --save`\n\n# Usage\n\nHaving the following response\n```json\n{\n  \"first_name\": \"Hector\",\n  \"last-name\": \"Zarco\"\n}\n```\n\n```javascript\nvar request = require('superagent');\nvar serializer = require('superagent-serializer');\n\nserializer(request, 'camel');\n\nrequest.get('data.json').send().end(function(err, res) {\n  console.log(res.firstName + ' ' + res.lastName);\n});\n\n```\n\nThis will convert the output into\n\n```json\n{\n  \"firstName\": \"Zarco\",\n  \"lastName\": \"Hector Zarco\"\n}\n\n```\n\n# Cases\n  - **upper** : `foo_bar` -\u003e `FOO BAR`\n  - **lower** : `fooBar` -\u003e `foo bar`\n  - **snake** : `Foo bar!` -\u003e `foo_bar`\n  - **pascal** : `foo.bar` -\u003e `FooBar`\n  - **camel** : `foo, bar` -\u003e `fooBar`\n  - **kebab** : `Foo? Bar.` -\u003e `foo-bar`\n  - **constant** : `Foo-Bar` -\u003e `FOO_BAR`\n  - **title** : `foo v. bar` -\u003e `Foo v. Bar`\n  - **capital** : `foo_v_bar` -\u003e `Foo V Bar`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzarcon%2Fsuperagent-serializer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzzarcon%2Fsuperagent-serializer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzarcon%2Fsuperagent-serializer/lists"}