{"id":28195726,"url":"https://github.com/rohmanhm/create-obj","last_synced_at":"2026-04-24T16:06:17.422Z","repository":{"id":36271667,"uuid":"222690279","full_name":"rohmanhm/create-obj","owner":"rohmanhm","description":"Create object only return object key with value","archived":false,"fork":false,"pushed_at":"2023-01-05T01:18:04.000Z","size":1953,"stargazers_count":2,"open_issues_count":16,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-16T14:14:11.232Z","etag":null,"topics":["create-obj","javascript","library","packages","typescript"],"latest_commit_sha":null,"homepage":null,"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/rohmanhm.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":"2019-11-19T12:24:39.000Z","updated_at":"2023-03-08T03:35:00.000Z","dependencies_parsed_at":"2023-01-17T00:00:45.709Z","dependency_job_id":null,"html_url":"https://github.com/rohmanhm/create-obj","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rohmanhm/create-obj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohmanhm%2Fcreate-obj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohmanhm%2Fcreate-obj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohmanhm%2Fcreate-obj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohmanhm%2Fcreate-obj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rohmanhm","download_url":"https://codeload.github.com/rohmanhm/create-obj/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohmanhm%2Fcreate-obj/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32230438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"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":["create-obj","javascript","library","packages","typescript"],"created_at":"2025-05-16T14:14:17.139Z","updated_at":"2026-04-24T16:06:17.403Z","avatar_url":"https://github.com/rohmanhm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# create-obj\n\n\u003e Create a new object with only keep truthy key value\n\n## Install\n\n```\n$ npm install create-obj\n```\n\nOr\n\n```\n$ yarn add create-obj\n```\n\n## Usage\n\n```js\nimport { CreateObj } from 'create-obj';\n// Or\nconst { CreateObj } = require('create-obj');\n// Or you can use the `co` shortcut\nimport { co } from 'create-obj';\n\nconst object = {\n  className: 'only-this-obj-key-will-persist',\n  disabled: '',\n  autoComplete: false,\n  checked: undefined,\n  spellCheck: null,\n};\nconst newObject = co(object);\n//=\u003e {className: 'only-this-obj-key-will-persist'}\n```\n\n## API\n\n### CreateObj(source)\n\n#### source\n\nType: `object`\n\nSource object to re-create properties from.\n\n## Local Development\n\nBelow is a list of commands you will probably find useful.\n\n### `npm start` or `yarn start`\n\nRuns the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for you convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab.\n\nYour library will be rebuilt if you make edits.\n\n### `npm run build` or `yarn build`\n\nBundles the package to the `dist` folder.\nThe package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).\n\n### `npm test` or `yarn test`\n\nRuns the test watcher (Jest) in an interactive mode.\nBy default, runs tests related to files changed since the last commit.\n\n## Related\n\n- [filter-obj](https://github.com/sindresorhus/filter-obj) - Filter object keys and values into a new object\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohmanhm%2Fcreate-obj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohmanhm%2Fcreate-obj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohmanhm%2Fcreate-obj/lists"}