{"id":15764149,"url":"https://github.com/mikaello/rescript-clean-deep","last_synced_at":"2026-01-08T10:55:06.948Z","repository":{"id":39331356,"uuid":"172749278","full_name":"mikaello/rescript-clean-deep","owner":"mikaello","description":"ReScript bindings for clean-deep: remove empty or nullable values from javascript objects","archived":false,"fork":false,"pushed_at":"2024-09-13T12:13:41.000Z","size":592,"stargazers_count":2,"open_issues_count":5,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-11T12:04:04.349Z","etag":null,"topics":["javascript-utility","rescript","rescript-bindings"],"latest_commit_sha":null,"homepage":"","language":"ReScript","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/mikaello.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-26T16:34:59.000Z","updated_at":"2024-04-29T03:14:20.000Z","dependencies_parsed_at":"2023-02-08T07:16:16.795Z","dependency_job_id":"7b7595a1-4580-48fd-a95e-69626e96c211","html_url":"https://github.com/mikaello/rescript-clean-deep","commit_stats":{"total_commits":79,"total_committers":3,"mean_commits":"26.333333333333332","dds":0.3291139240506329,"last_synced_commit":"eef12a7f32df472d79522522695b5971fe258807"},"previous_names":["mikaello/bs-clean-deep"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaello%2Frescript-clean-deep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaello%2Frescript-clean-deep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaello%2Frescript-clean-deep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaello%2Frescript-clean-deep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikaello","download_url":"https://codeload.github.com/mikaello/rescript-clean-deep/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246450478,"owners_count":20779421,"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":["javascript-utility","rescript","rescript-bindings"],"created_at":"2024-10-04T12:01:30.777Z","updated_at":"2026-01-08T10:55:06.881Z","avatar_url":"https://github.com/mikaello.png","language":"ReScript","readme":"# rescript-clean-deep\n\n[![NPM version](http://img.shields.io/npm/v/rescript-clean-deep.svg)](https://www.npmjs.org/package/rescript-clean-deep)\n[![Build Status](https://app.travis-ci.com/mikaello/rescript-clean-deep.svg?branch=master)](https://app.travis-ci.com/github/mikaello/rescript-clean-deep)\n\nReScript bindings for [clean-deep](https://github.com/nunofgs/clean-deep), a library for\nremoving empty or nullable values from javascript objects.\n\n## Getting started\n\n```\nyarn add rescript-clean-deep\n```\n\nThen add `rescript-clean-deep` as a dependency to `bsconfig.json`:\n\n```diff\n\"bs-dependencies\": [\n+  \"rescript-clean-deep\"\n]\n```\n\n## Example\n\n```reason\nopen RescriptCleanDeep;\n\nlet jsObject = [%bs.raw {|\n{\n  bar: {},\n  baz: null,\n  biz: 'baz',\n  foo: '',\n  net: [],\n  nit: undefined,\n  qux: {\n    baz: 'boz',\n    txi: ''\n  }\n}\n|}];\n\nlet cleaned = CleanDeep.cleanDeep(jsObject, ());\n\nJs.log(cleaned);\n/* =\u003e { biz: 'baz', qux: { baz: 'boz' } } */\n\nlet cleanedKeepStrings = jsObject-\u003eCleanDeep.cleanDeep(~emptyStrings=false, ());\n\nJs.log(cleanedKeepStrings);\n/* =\u003e { biz: 'baz', foo: '', qux: { baz: 'boz', txi: '' } } */\n\nlet cleanedCustomValues = jsObject-\u003eCleanDeep.cleanDeep(~cleanValues=[|\"baz\"|], ());\n\nJs.log(cleanedCustomValues);\n/* =\u003e { qux: { baz: 'boz' } } */\n```\n\nSee also [example-project](./example).\n\n## Contribute\n\nIf you find bugs or there are updates in\n[clean-deep](https://github.com/nunofgs/clean-deep), feel free to open an issue\nor PR. If you are upgrading any dependencies, please use yarn so `yarn.lock` is\nupdated.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikaello%2Frescript-clean-deep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikaello%2Frescript-clean-deep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikaello%2Frescript-clean-deep/lists"}