{"id":25121705,"url":"https://github.com/josephdavis/weak-split","last_synced_at":"2025-04-02T15:42:26.093Z","repository":{"id":96171618,"uuid":"51051601","full_name":"JosephDavis/weak-split","owner":"JosephDavis","description":"Split a string, discarding empty leading and trailing elements in the output.","archived":false,"fork":false,"pushed_at":"2016-02-04T04:30:31.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T06:34:31.506Z","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/JosephDavis.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-02-04T04:17:33.000Z","updated_at":"2016-02-04T04:23:28.000Z","dependencies_parsed_at":"2023-04-26T17:26:08.888Z","dependency_job_id":null,"html_url":"https://github.com/JosephDavis/weak-split","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/JosephDavis%2Fweak-split","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephDavis%2Fweak-split/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephDavis%2Fweak-split/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephDavis%2Fweak-split/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JosephDavis","download_url":"https://codeload.github.com/JosephDavis/weak-split/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246847054,"owners_count":20843438,"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":"2025-02-08T06:32:59.580Z","updated_at":"2025-04-02T15:42:26.047Z","avatar_url":"https://github.com/JosephDavis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weak Split\n\nSplit a string, discarding empty leading and trailing elements in the output.\n\n## Example\n\n```js\nconst string = 'Banana, Orange, Apple,';\nstring.split(/,\\s?/); // ['Banana', 'Orange', 'Apple', '']\n\nconst weakSplit = require('weak-split');\nweakSplit(string, /,\\s?/); // ['Banana', 'Orange', 'Apple']\n```\n\n## Install\n\n```sh\nnpm install weak-split --save\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosephdavis%2Fweak-split","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosephdavis%2Fweak-split","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosephdavis%2Fweak-split/lists"}