# mb-substr

> mb-substr - Multibyte substr

Latest version **0.0.2** (published 2017-03-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install mb-substr
pnpm add mb-substr
yarn add mb-substr
bun add mb-substr
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-03-12 |
| First published | 2017-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | gen6033 |
| Maintainers | gen6033 |
| Keywords | multibyte, substr |

## Links

- npm: https://www.npmjs.com/package/mb-substr
- Repository: https://github.com/gen6033/mb-substr
- Homepage: https://github.com/gen6033/mb-substr#readme
- Issues: https://github.com/gen6033/mb-substr/issues
- npm.io page: https://npm.io/package/mb-substr

## Recent versions

- 0.0.2 (latest) — 2017-03-12

## README

# mb-substr

> multibyte substr


## Install

```
$ npm install mb-substr
```


## Usage

```js
const mbsubstr = require('mb-substr');

mbsubstr('あいうえお', 2 ,2);
//=> 'い'

mbsubstr('あいうえお', 2);
//=> 'いうえお'

mbsubstr('あいうえお', 1, 2);
//=> ''

mbsubstr('あいうえお', 1, 3);
//=> 'い'

mbsubstr('aあいうえお', 1, 2);
//=> 'あ'
```


## API

### mbsubstr(input, [start, [len]])

#### input: `string`

#### start: `number`

##### len: `number`


## License

MIT

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