{"id":23826227,"url":"https://github.com/moeriki/shiny-object","last_synced_at":"2025-09-21T17:59:03.043Z","repository":{"id":57358451,"uuid":"48174158","full_name":"moeriki/shiny-object","owner":"moeriki","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-01T16:44:04.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-24T20:48:48.966Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/moeriki.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-17T12:50:24.000Z","updated_at":"2018-10-01T16:44:05.000Z","dependencies_parsed_at":"2022-09-06T22:21:29.331Z","dependency_job_id":null,"html_url":"https://github.com/moeriki/shiny-object","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeriki%2Fshiny-object","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeriki%2Fshiny-object/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeriki%2Fshiny-object/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeriki%2Fshiny-object/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moeriki","download_url":"https://codeload.github.com/moeriki/shiny-object/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeriki%2Fshiny-object/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259053542,"owners_count":22798439,"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":[],"created_at":"2025-01-02T12:16:46.392Z","updated_at":"2025-09-21T17:58:58.011Z","avatar_url":"https://github.com/moeriki.png","language":"JavaScript","readme":"# Shiny Object\n\nMake your objects shine by cleaning off all the dirt. (eg. undefined, empty objects)\n\n## Usage\n\n```javascript\nconst shiny = require('shiny-object');\n\n// input is not mutated\nshiny(\n  {\n    string: '',\n    nill: null,\n    undef: undefined,\n    arr: [{ key: '' }],\n    fn: () =\u003e ({ func: () =\u003e {} }),\n    clean: 'value',\n  },\n  {\n    // All options default to false\n    noUndefined: true,\n    noNull: true,\n    noFunction: true,\n    noEmptyString: true,\n    noEmptyArray: true,\n    noEmptyObject: true,\n  }\n); // { clean: 'value' }\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoeriki%2Fshiny-object","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoeriki%2Fshiny-object","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoeriki%2Fshiny-object/lists"}