{"id":21959046,"url":"https://github.com/itaibo/momoa","last_synced_at":"2026-05-03T20:31:16.230Z","repository":{"id":63949745,"uuid":"572039731","full_name":"itaibo/momoa","owner":"itaibo","description":"Operations with JSONs","archived":false,"fork":false,"pushed_at":"2022-11-29T18:13:34.000Z","size":220,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T06:27:08.363Z","etag":null,"topics":["etl","gzip","json"],"latest_commit_sha":null,"homepage":"https://npmjs.com/momoa","language":"TypeScript","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/itaibo.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":"2022-11-29T12:33:51.000Z","updated_at":"2022-11-29T12:36:33.000Z","dependencies_parsed_at":"2023-01-14T16:15:56.919Z","dependency_job_id":null,"html_url":"https://github.com/itaibo/momoa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itaibo/momoa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaibo%2Fmomoa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaibo%2Fmomoa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaibo%2Fmomoa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaibo%2Fmomoa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itaibo","download_url":"https://codeload.github.com/itaibo/momoa/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaibo%2Fmomoa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32583905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["etl","gzip","json"],"created_at":"2024-11-29T09:19:05.824Z","updated_at":"2026-05-03T20:31:16.046Z","avatar_url":"https://github.com/itaibo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Momoa\n![CI](https://github.com/itaibo/momoa/actions/workflows/ci.yml/badge.svg)\n\nOperations with JSONs\n\n## Usage\nInstall the package:\n```sh\nnpm install momoa\n```\n\nThen import it in your application and start an instance\n```js\nimport Momoa from 'momoa';\nconst momoa = new Momoa();\n```\n\n### Enlist JSON Array\n\n```js\nconst multilineString = await momoa.enlist([{ test: 1 }, { test: 2 }, { test: 3 }]).output();\nconsole.log(multilineString);\n```\n\nOutput would be:\n\n```txt\n{\"test\":1}\n{\"test\":2}\n{\"test\":3}\n\n```\n\n### Unlist JSON String\n\n```js\nconst array = await momoa.unlist(\"{\\\"test\\\":1}\").json();\nconsole.log(array);\n```\n\nOutput would be:\n\n```json\n[\n  { \"test\": 1 }\n]\n```\n\n\n### Gzip results\n\n```js\nconst gzipped = await momoa.enlist([{ test: 1 }, { test: 2 }, { test: 3 }]).gzip().end();\nconsole.log(gzipped);\n```\n\nOutput would be:\n\n```txt\n\u003cBuffer 1f 8b 08 00 00 00 00 00 00 13 ab 56 2a 49 2d 2e 51 b2 32 ac e5 e5 aa 86 b2 8d 90 d8 c6 40 36 00 64 7b 12 18 24 00 00 00\u003e\n```\n\n### UnGzip\n\n```js\nconst uncompressed = await momoa.ungzip(BUFFER).end();\nconsole.log(uncompressed);\n```\n\nOutput would be:\n\n```txt\n{\"test\":1}\n{\"test\":2}\n{\"test\":3}\n\n```\n\n#### Special thanks\nChaining async functions: [Proxymise](https://www.npmjs.com/package/proxymise)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitaibo%2Fmomoa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitaibo%2Fmomoa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitaibo%2Fmomoa/lists"}