{"id":17057242,"url":"https://github.com/abdurrahmanekr/json-body-trim","last_synced_at":"2025-04-12T17:34:23.769Z","repository":{"id":57284687,"uuid":"155766207","full_name":"abdurrahmanekr/json-body-trim","owner":"abdurrahmanekr","description":null,"archived":false,"fork":false,"pushed_at":"2018-11-01T19:35:59.000Z","size":1,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T22:37:42.093Z","etag":null,"topics":["express","express-middleware","json-trim","trim"],"latest_commit_sha":null,"homepage":null,"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/abdurrahmanekr.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":"2018-11-01T19:35:52.000Z","updated_at":"2021-08-03T08:48:01.000Z","dependencies_parsed_at":"2022-08-25T07:21:12.170Z","dependency_job_id":null,"html_url":"https://github.com/abdurrahmanekr/json-body-trim","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/abdurrahmanekr%2Fjson-body-trim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdurrahmanekr%2Fjson-body-trim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdurrahmanekr%2Fjson-body-trim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdurrahmanekr%2Fjson-body-trim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdurrahmanekr","download_url":"https://codeload.github.com/abdurrahmanekr/json-body-trim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248605664,"owners_count":21132213,"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":["express","express-middleware","json-trim","trim"],"created_at":"2024-10-14T10:26:43.487Z","updated_at":"2025-04-12T17:34:23.745Z","avatar_url":"https://github.com/abdurrahmanekr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Body Trim\nJson white space cleaner\n\n## Install\n\n```bash\n$ npm i json-body-trim --save\n```\n\n## API\n\n```javascript\nconst jsonBodyTrim = require('json-body-trim');\nconst app = require('express')();\n\napp.use(jsonBodyTrim());\n\n...\n```\n\n# Example\n\n```javascript\nconst jsonBodyTrim = require('json-body-trim');\nconst bodyParser = require('body-parser');\n\nconst app = require('express')();\n\napp.use(bodyParser.json());\napp.use(jsonBodyTrim());\n\napp.post('/', (req, res) =\u003e {\n    res.send(req.body);\n})\n\napp.listen(8080);\n\n\n// post localhost:8080 this data: {\"   test   \": \"hello  \"}\n// response this data: {\"test\":\"hello\"}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdurrahmanekr%2Fjson-body-trim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdurrahmanekr%2Fjson-body-trim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdurrahmanekr%2Fjson-body-trim/lists"}