string-plumbing/split

View on GitHub
README.md

Summary

Maintainability
Test Coverage
:vulcan_salute: [@string-plumbing/split](https://string-plumbing.github.io/split)
==

Split a string into substrings given a pattern with JavaScript.
See [docs](https://string-plumbing.github.io/split/index.html).

> :warning: Depending on your environment, the code may require
> `regeneratorRuntime` to be defined, for instance by importing
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).

```js
import {split} from '@string-plumbing/split';

split('A, B, C', ', '); // ['A', 'B', 'C']
```

[![License](https://img.shields.io/github/license/string-plumbing/split.svg)](https://raw.githubusercontent.com/string-plumbing/split/main/LICENSE)
[![Version](https://img.shields.io/npm/v/@string-plumbing/split.svg)](https://www.npmjs.org/package/@string-plumbing/split)
[![Tests](https://img.shields.io/github/actions/workflow/status/string-plumbing/split/ci.yml?branch=main&event=push&label=tests)](https://github.com/string-plumbing/split/actions/workflows/ci.yml?query=branch:main)
[![Dependencies](https://img.shields.io/librariesio/github/string-plumbing/split.svg)](https://github.com/string-plumbing/split/network/dependencies)
[![GitHub issues](https://img.shields.io/github/issues/string-plumbing/split.svg)](https://github.com/string-plumbing/split/issues)
[![Downloads](https://img.shields.io/npm/dm/@string-plumbing/split.svg)](https://www.npmjs.org/package/@string-plumbing/split)

[![Code issues](https://img.shields.io/codeclimate/issues/string-plumbing/split.svg)](https://codeclimate.com/github/string-plumbing/split/issues)
[![Code maintainability](https://img.shields.io/codeclimate/maintainability/string-plumbing/split.svg)](https://codeclimate.com/github/string-plumbing/split/trends/churn)
[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/string-plumbing/split/main.svg)](https://codecov.io/gh/string-plumbing/split)
[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/string-plumbing/split.svg)](https://codeclimate.com/github/string-plumbing/split/trends/technical_debt)
[![Documentation](https://string-plumbing.github.io/split/badge.svg)](https://string-plumbing.github.io/split/source.html)
[![Package size](https://img.shields.io/bundlephobia/minzip/@string-plumbing/split)](https://bundlephobia.com/result?p=@string-plumbing/split)