{"id":19042014,"url":"https://github.com/writetome51/error-if-length-is-zero","last_synced_at":"2025-07-24T02:31:55.875Z","repository":{"id":57226735,"uuid":"188297616","full_name":"writetome51/error-if-length-is-zero","owner":"writetome51","description":"Function triggers error if argument is not string longer than zero characters","archived":false,"fork":false,"pushed_at":"2020-07-28T07:29:13.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-29T05:46:26.389Z","etag":null,"topics":["error","javascript","length","message","string","zero"],"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/writetome51.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-05-23T19:54:43.000Z","updated_at":"2020-07-28T07:29:16.000Z","dependencies_parsed_at":"2022-08-24T15:51:14.876Z","dependency_job_id":null,"html_url":"https://github.com/writetome51/error-if-length-is-zero","commit_stats":null,"previous_names":["writetome51/error-if-not-string-longer-than-zero"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/writetome51/error-if-length-is-zero","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Ferror-if-length-is-zero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Ferror-if-length-is-zero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Ferror-if-length-is-zero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Ferror-if-length-is-zero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/writetome51","download_url":"https://codeload.github.com/writetome51/error-if-length-is-zero/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Ferror-if-length-is-zero/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266785457,"owners_count":23983821,"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-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["error","javascript","length","message","string","zero"],"created_at":"2024-11-08T22:33:56.520Z","updated_at":"2025-07-24T02:31:55.845Z","avatar_url":"https://github.com/writetome51.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# errorIfLengthIsZero(\u003cbr\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;arg: { length: number }\u003cbr\u003e): void\n\nTriggers error \"Input must have length greater than zero\" if  \n`!(arg.length) || arg.length \u003c 1` .\n\n## Installation\n`npm i  error-if-length-is-zero`\n\n## Loading\n```js\nimport { errorIfLengthIsZero }  from 'error-if-length-is-zero';\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritetome51%2Ferror-if-length-is-zero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwritetome51%2Ferror-if-length-is-zero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritetome51%2Ferror-if-length-is-zero/lists"}