{"id":13492599,"url":"https://github.com/tinyhttp/milliparsec","last_synced_at":"2025-05-15T09:07:12.349Z","repository":{"id":39660902,"uuid":"190649311","full_name":"tinyhttp/milliparsec","owner":"tinyhttp","description":"🌌 Tiniest body parser in the universe. Built for modern Node.js","archived":false,"fork":false,"pushed_at":"2025-04-29T15:20:33.000Z","size":6834,"stargazers_count":197,"open_issues_count":2,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-05T15:53:41.302Z","etag":null,"topics":["body-parser","es6","es6-javascript","express","http","javascript","middleware","node","node-js","nodejs","tinyhttp","typescript"],"latest_commit_sha":null,"homepage":"https://npm.im/milliparsec","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/tinyhttp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"ko_fi":"v1rtl","liberapay":"v1rtl"}},"created_at":"2019-06-06T21:01:59.000Z","updated_at":"2025-03-12T21:56:04.000Z","dependencies_parsed_at":"2024-02-04T10:07:54.301Z","dependency_job_id":"16560273-a718-441e-9c97-0cb5b10833b4","html_url":"https://github.com/tinyhttp/milliparsec","commit_stats":{"total_commits":208,"total_committers":11,"mean_commits":18.90909090909091,"dds":0.6490384615384616,"last_synced_commit":"eb673a7e6e361203560776ffd93aa9f90d3df211"},"previous_names":["talentlessguy/parsec"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyhttp%2Fmilliparsec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyhttp%2Fmilliparsec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyhttp%2Fmilliparsec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyhttp%2Fmilliparsec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinyhttp","download_url":"https://codeload.github.com/tinyhttp/milliparsec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253929359,"owners_count":21985802,"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":["body-parser","es6","es6-javascript","express","http","javascript","middleware","node","node-js","nodejs","tinyhttp","typescript"],"created_at":"2024-07-31T19:01:07.416Z","updated_at":"2025-05-15T09:07:08.154Z","avatar_url":"https://github.com/tinyhttp.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n\u003cbr /\u003e\u003cbr /\u003e\u003cbr /\u003e\n\u003cimg src=\"logo.png\" width=\"400px\" /\u003e\n\u003cbr /\u003e\u003cbr /\u003e\n\n[![Version][v-badge-url]][npm-url] [![Coverage][cov-img]][cov-url]\n[![Github actions][gh-actions-img]][github-actions]\n[![Downloads][dl-badge-url]][npm-url]\n\n\u003c/div\u003e\n\u003cbr /\u003e\n\nTiniest body parser in the universe. Built for modern Node.js.\n\nCheck out [deno-libs/parsec](https://github.com/deno-libs/parsec) for Deno port.\n\n## Features\n\n- 🛠 JSON / raw / urlencoded / multipart support\n- 📦 tiny package size (8KB dist size)\n- 🔥 no dependencies\n- ✨ [tinyhttp](https://github.com/tinyhttp/tinyhttp) and Express support\n- ⚡ 40% faster than body-parser and 20x faster than formidable\n\n## Install\n\n```sh\n# pnpm\npnpm i milliparsec\n\n# bun\nbun i milliparsec\n```\n\n## Usage\n\n### Basic example\n\nUse a middleware inside a server:\n\n```js\nimport { createServer } from 'node:http'\nimport { json } from 'milliparsec'\n\nconst server = createServer(async (req: ReqWithBody, res) =\u003e {\n  await json()(req, res, (err) =\u003e void err \u0026\u0026 res.end(err))\n\n  res.setHeader('Content-Type', 'application/json')\n\n  res.end(JSON.stringify(req.body))\n})\n```\n\n### What is \"parsec\"?\n\nThe parsec is a unit of length used to measure large distances to astronomical\nobjects outside the Solar System.\n\n[v-badge-url]: https://img.shields.io/npm/v/milliparsec.svg?style=for-the-badge\u0026color=25608B\u0026logo=npm\u0026label=\n[npm-url]: https://www.npmjs.com/package/milliparsec\n[dl-badge-url]: https://img.shields.io/npm/dt/milliparsec?style=for-the-badge\u0026color=25608B\n[github-actions]: https://github.com/talentlessguy/milliparsec/actions\n[gh-actions-img]: https://img.shields.io/github/actions/workflow/status/tinyhttp/milliparsec/main.yml?branch=master\u0026style=for-the-badge\u0026color=25608B\u0026label=\u0026logo=github\n[cov-img]: https://img.shields.io/coveralls/github/tinyhttp/milliparsec?style=for-the-badge\u0026color=25608B\n[cov-url]: https://coveralls.io/github/tinyhttp/milliparsec\n","funding_links":["https://ko-fi.com/v1rtl","https://liberapay.com/v1rtl"],"categories":["Things that don't work at the moment","TypeScript","Utilities","M"],"sub_categories":["HTTP / URLs"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyhttp%2Fmilliparsec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinyhttp%2Fmilliparsec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyhttp%2Fmilliparsec/lists"}