# dsplit

> split string into array with default delimiter `'/'`

Latest version **4.0.0** (published 2016-09-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install dsplit
pnpm add dsplit
yarn add dsplit
bun add dsplit
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2016-09-05 |
| First published | 2016-09-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | @serapath |
| Maintainers | serapath |
| Keywords | join, array, delimiter |

## Links

- npm: https://www.npmjs.com/package/dsplit
- Repository: https://github.com/serapath/dsplit
- Homepage: https://github.com/serapath/dsplit#readme
- Issues: https://github.com/serapath/dsplit/issues
- npm.io page: https://npm.io/package/dsplit

## Dependencies (1)

- [x-is-string](https://npm.io/package/x-is-string.md) ^0.1.0

## Alternatives

- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads

## Recent versions

- 4.0.0 (latest) — 2016-09-05
- 3.0.0 — 2016-09-04
- 2.0.2 — 2016-09-03
- 2.0.1 — 2016-09-03
- 2.0.0 — 2016-09-03
- 1.0.0 — 2016-09-03

## README

# dsplit
split string into array with default delimiter `'/'`

# usage
`npm install dsplit`

```js
  var dsplit = require('dsplit')
  console.log(dsplit('a.b.c', '.')) // => ['a', 'b', 'c']
  console.log(dsplit('a/b/c')) // => ['a', 'b', 'c']
  console.log(dsplit('/a/b//c/')) // => ['', 'a', 'b', '', 'c', '']
  console.log(dsplit('a/b//')) // => ['a', 'b', '', '']
  console.log(dsplit('//a/b')) // => ['', '', 'a', 'b']
  console.log(dsplit('//')) // => ['','','']
  console.log(dsplit('/')) // => ['','']
  console.log(dsplit('')) // => ['']
  console.log(dsplit([])) // => []
  console.log(dsplit(undefined)) // => []
```

# Related
* see [djoin](https://www.npmjs.com/package/djoin)

---
_Source: https://npm.io/package/dsplit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
