{"id":18256164,"url":"https://github.com/serapath/dsplit","last_synced_at":"2025-04-08T22:26:58.108Z","repository":{"id":57216750,"uuid":"67262984","full_name":"serapath/dsplit","owner":"serapath","description":"split string into array with default delimiter `'/'`","archived":false,"fork":false,"pushed_at":"2016-09-05T00:01:07.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-27T14:46:19.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/dsplit","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/serapath.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-09-03T00:36:45.000Z","updated_at":"2016-09-03T21:02:19.000Z","dependencies_parsed_at":"2022-08-28T21:40:08.939Z","dependency_job_id":null,"html_url":"https://github.com/serapath/dsplit","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/serapath%2Fdsplit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fdsplit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fdsplit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fdsplit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serapath","download_url":"https://codeload.github.com/serapath/dsplit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247937211,"owners_count":21021214,"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-11-05T10:20:15.555Z","updated_at":"2025-04-08T22:26:58.088Z","avatar_url":"https://github.com/serapath.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dsplit\nsplit string into array with default delimiter `'/'`\n\n# usage\n`npm install dsplit`\n\n```js\n  var dsplit = require('dsplit')\n  console.log(dsplit('a.b.c', '.')) // =\u003e ['a', 'b', 'c']\n  console.log(dsplit('a/b/c')) // =\u003e ['a', 'b', 'c']\n  console.log(dsplit('/a/b//c/')) // =\u003e ['', 'a', 'b', '', 'c', '']\n  console.log(dsplit('a/b//')) // =\u003e ['a', 'b', '', '']\n  console.log(dsplit('//a/b')) // =\u003e ['', '', 'a', 'b']\n  console.log(dsplit('//')) // =\u003e ['','','']\n  console.log(dsplit('/')) // =\u003e ['','']\n  console.log(dsplit('')) // =\u003e ['']\n  console.log(dsplit([])) // =\u003e []\n  console.log(dsplit(undefined)) // =\u003e []\n```\n\n# Related\n* see [djoin](https://www.npmjs.com/package/djoin)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Fdsplit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserapath%2Fdsplit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Fdsplit/lists"}