{"id":18419618,"url":"https://github.com/davebaol/length-of","last_synced_at":"2025-04-13T09:13:59.530Z","repository":{"id":57106270,"uuid":"183403877","full_name":"davebaol/length-of","owner":"davebaol","description":"Get the number of items of an array, characters of a string or properties of an object; undefined otherwise","archived":false,"fork":false,"pushed_at":"2019-04-25T20:27:25.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T09:13:55.404Z","etag":null,"topics":["array","length","object","string"],"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/davebaol.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-04-25T09:40:12.000Z","updated_at":"2019-04-26T09:23:02.000Z","dependencies_parsed_at":"2022-08-20T23:50:18.369Z","dependency_job_id":null,"html_url":"https://github.com/davebaol/length-of","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/davebaol%2Flength-of","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davebaol%2Flength-of/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davebaol%2Flength-of/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davebaol%2Flength-of/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davebaol","download_url":"https://codeload.github.com/davebaol/length-of/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688551,"owners_count":21145766,"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":["array","length","object","string"],"created_at":"2024-11-06T04:17:37.221Z","updated_at":"2025-04-13T09:13:59.504Z","avatar_url":"https://github.com/davebaol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# length-of\n\n[![npm version](https://badge.fury.io/js/%40davebaol%2Flength-of.svg)](https://badge.fury.io/js/%40davebaol%2Flength-of) [![Build Status](https://travis-ci.org/davebaol/length-of.svg?branch=master)](https://travis-ci.org/davebaol/length-of) [![Codecove](https://codecov.io/github/davebaol/length-of/coverage.svg?precision=0)](https://codecov.io/github/davebaol/length-of) [![dependencies Status](https://david-dm.org/davebaol/length-of/status.svg)](https://david-dm.org/davebaol/length-of) [![devDependencies Status](https://david-dm.org/davebaol/length-of/dev-status.svg)](https://david-dm.org/davebaol/length-of?type=dev) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nGet the number of items of an array, characters of a string or properties of an object; undefined otherwise.\n\n## Install with npm\n\n```bash\nnpm i @davebaol/length-of --save\n```\n\n## Usage\n\n```js\nvar lengthOf = require('@davebaol/length-of');\n\nlengthOf({a: 'a', b: 'b'});\n//=\u003e 2\n\nlengthOf('length-of');\n//=\u003e 9\n\nlengthOf(['foo', 'bar']);\n//=\u003e 2\n\nlengthOf(123);\n//=\u003e undefined\n```\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/davebaol/length-of/issues)\n\n## Running tests\nInstall dev dependencies.\n\n```bash\nnpm i -d \u0026\u0026 npm test\n```\n\n# License\n\nMIT © Davide Sessi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavebaol%2Flength-of","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavebaol%2Flength-of","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavebaol%2Flength-of/lists"}