{"id":15823937,"url":"https://github.com/stefh/string-split-join","last_synced_at":"2025-04-01T08:51:08.504Z","repository":{"id":57372535,"uuid":"86450558","full_name":"StefH/string-split-join","owner":"StefH","description":"StringUtils for splitting and joining strings with support for separatorCharacter and escapeCharacter.","archived":false,"fork":false,"pushed_at":"2017-06-15T09:30:58.000Z","size":989,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-13T21:28:07.834Z","etag":null,"topics":["join","node","split","string","string-manipulation"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/StefH.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-03-28T11:12:05.000Z","updated_at":"2017-06-08T14:31:55.000Z","dependencies_parsed_at":"2022-09-09T11:50:33.865Z","dependency_job_id":null,"html_url":"https://github.com/StefH/string-split-join","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2Fstring-split-join","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2Fstring-split-join/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2Fstring-split-join/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2Fstring-split-join/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StefH","download_url":"https://codeload.github.com/StefH/string-split-join/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246612442,"owners_count":20805351,"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":["join","node","split","string","string-manipulation"],"created_at":"2024-10-05T08:24:12.306Z","updated_at":"2025-04-01T08:51:08.467Z","avatar_url":"https://github.com/StefH.png","language":"TypeScript","readme":"# string-split-join\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/StefH/string-split-join.svg)](https://greenkeeper.io/)\n[![Build Status](https://travis-ci.org/StefH/string-split-join.svg?branch=master)](https://travis-ci.org/StefH/string-split-join)\n[![codecov](https://codecov.io/gh/StefH/string-split-join/branch/master/graph/badge.svg)](https://codecov.io/gh/StefH/string-split-join)\n[![npm version](https://badge.fury.io/js/string-split-join.svg)](http://badge.fury.io/js/string-split-join)\n[![devDependency Status](https://david-dm.org/StefH/string-split-join/dev-status.svg)](https://david-dm.org/StefH/string-split-join?type=dev)\n[![GitHub issues](https://img.shields.io/github/issues/StefH/string-split-join.svg)](https://github.com/StefH/string-split-join/issues)\n[![GitHub stars](https://img.shields.io/github/stars/StefH/string-split-join.svg)](https://github.com/StefH/string-split-join/stargazers)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/StefH/string-split-join/master/LICENSE)\n\n\n## Table of contents\n\n- [About](#about)\n- [Installation](#installation)\n- [Documentation](#documentation)\n- [Development](#development)\n- [License](#license)\n\n## About\n\nStringUtils for splitting and joining strings with support for separatorCharacter and escapeCharacter.\n\n## Installation\n\nInstall through npm:\n```\nnpm install --save string-split-join\n```\n\nUse it like:\n\n```typescript\nimport { StringUtils } from 'string-split-join';\n\nexport class Test {\n  public test(): void {\n    let result: string;\n\n    // Joining\n    result = StringUtils.join([ 'a', 'b', ':c', 'd']); // 'a:b:\\\\:c:d'\n    result = StringUtils.join([ 'a', 'b', ':c', 'd'], { escapeChar: '$' });  // 'a:b:$:c:d'\n    result = StringUtils.join([ 'a', 'b', '|c', 'd'], { separatorChar: '|', escapeChar: '$' }); // 'a|b|$|c|d'\n\n    // Splitting\n    let results: [];\n    results = StringUtils.split('a:b:\\\\:c:d'); // ['a', 'b', ':c', 'd' ]\n    results = StringUtils.split('a|b|c|d', { separatorChar: '|' }); // ['a', 'b', 'c', 'd' ]\n    results = StringUtils.split('a|b|$|c|d', { separatorChar: '|', escapeChar: '$' }); // ['a', 'b', '|c', 'd' ]\n  }\n}\n```\n\n### Usage without a module bundler\n```\n\u003cscript src=\"node_modules/string-split-join/bundles/string-split-join.umd.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    // everything is exported StringUtils namespace\n\u003c/script\u003e\n```\n\n## Documentation\nAll documentation is auto-generated from the source via [compodoc](https://compodoc.github.io/compodoc/) and can be viewed here:\nhttps://StefH.github.io/string-split-join/docs/\n\n## Development\n\n### Prepare your environment\n* Install [Node.js](http://nodejs.org/) and [yarn](https://yarnpkg.com/en/docs/install)\n* Install local dev dependencies: `yarn` while current directory is this repo\n\n### Development server\nRun `yarn start` to start a development server on port 8000 with auto reload + tests.\n\n### Testing\nRun `yarn test` to run tests once or `yarn run test:watch` to continually run tests.\n\n### Release\n* Bump the version in package.json (once the module hits 1.0 this will become automatic)\n```bash\nyarn run release\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefh%2Fstring-split-join","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefh%2Fstring-split-join","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefh%2Fstring-split-join/lists"}