{"id":23053631,"url":"https://github.com/component/more","last_synced_at":"2025-08-15T04:30:49.049Z","repository":{"id":4624985,"uuid":"5769075","full_name":"component/more","owner":"component","description":"Expand and collapse lists","archived":false,"fork":false,"pushed_at":"2013-10-09T23:41:32.000Z","size":104,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-03T07:05:55.719Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/component.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":"2012-09-11T18:50:32.000Z","updated_at":"2014-10-05T02:36:12.000Z","dependencies_parsed_at":"2022-09-21T18:31:19.936Z","dependency_job_id":null,"html_url":"https://github.com/component/more","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/component/more","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fmore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fmore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fmore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fmore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/more/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fmore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270523874,"owners_count":24600186,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-12-16T00:18:55.945Z","updated_at":"2025-08-15T04:30:48.730Z","avatar_url":"https://github.com/component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# more\n\n  Expand and collapse lists.\n\n ![](http://f.cl.ly/items/1l1B2I2H3x2h1b1C2E2K/Screen%20Shot%202012-09-11%20at%2011.47.46%20AM.png)\n\n## Installation\n\n    $ component install component/more\n\n## Example\n\n```js\nvar more = require('more');\nvar list = document.querySelector('ul');\n\nmore(list)\n  .max(5)\n  .more('Show more')\n  .less('Show less')\n  .render();\n```\n\n## API\n\n### More#max(n)\n\n  Change max number of list items shown when collapsed, defaults to `5`.\n\n### More#more(label)\n\n  Change `label` from default of \"More\".\n\n### More#less(label)\n\n  Change `label` from default of \"Less\".\n\n### More#render()\n\n  Render the list, adds the appropriate more / less link\n  depending on the state.\n\n### More#expand()\n\n  Expand the list and re-render.\n\n### More#collapse()\n\n  Collapse the list and re-render.\n\n### More#state\n\n  String representing the state. Either \"expanded\", or \"collapsed\".\n\n# License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fmore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Fmore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fmore/lists"}