{"id":18096253,"url":"https://github.com/bredele/attrs","last_synced_at":"2025-04-06T03:25:20.409Z","repository":{"id":57186525,"uuid":"57938701","full_name":"bredele/attrs","owner":"bredele","description":"Object as DOM attributes","archived":false,"fork":false,"pushed_at":"2016-05-03T23:11:55.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T19:37:55.973Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/bredele.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":"2016-05-03T03:28:15.000Z","updated_at":"2018-10-03T03:45:55.000Z","dependencies_parsed_at":"2022-09-14T14:21:37.960Z","dependency_job_id":null,"html_url":"https://github.com/bredele/attrs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredele%2Fattrs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredele%2Fattrs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredele%2Fattrs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredele%2Fattrs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bredele","download_url":"https://codeload.github.com/bredele/attrs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247428685,"owners_count":20937524,"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":"2024-10-31T19:13:11.343Z","updated_at":"2025-04-06T03:25:20.385Z","avatar_url":"https://github.com/bredele.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# attrs\n\nObject as DOM attributes.\n\n## usage\n\n```js\nvar attrs = require('attrs');\nvar bool = true;\nvar input = document.createElement('input');\n\nattrs(input, {\n  id: 'input',\n  checked: true,\n  class: ['hello', 'world'],\n  style : {\n    top: 100 + 'px',\n    bottom: 200 + 'px'\n  },\n  type: function() {\n    return bool ? 'radio' : 'checkbox';\n  }\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbredele%2Fattrs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbredele%2Fattrs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbredele%2Fattrs/lists"}