# uc-strings

> Various functions to work with strings

Latest version **1.0.1** (published 2018-10-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install uc-strings
pnpm add uc-strings
yarn add uc-strings
bun add uc-strings
```

## 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 | 1.0.1 |
| Published | 2018-10-07 |
| First published | 2018-06-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alexey Novikov |
| Maintainers | velocityzen |
| Keywords | unchained, ui, browser, strings, unicode, kiss |

## Links

- npm: https://www.npmjs.com/package/uc-strings
- Repository: https://github.com/unchainedui/strings
- Homepage: https://github.com/unchainedui/strings#readme
- Issues: https://github.com/unchainedui/strings/issues
- npm.io page: https://npm.io/package/uc-strings

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-10-07
- 1.0.0 — 2018-06-25

## README

# Unchained UI

## Strings

[![NPM Version](https://img.shields.io/npm/v/uc-strings.svg?style=flat-square)](https://www.npmjs.com/package/uc-strings)
[![NPM Downloads](https://img.shields.io/npm/dt/uc-strings.svg?style=flat-square)](https://www.npmjs.com/package/uc-strings)

Various functions to work with strings

### Usage

Just import methods you need

```js
import { length } from 'uc-strings'
```

### Methods

#### length(str)

return the proper length of the string. Counts the actual characters and not unicode surrogate pairs

#### substring(str, begin, end)

return the proper substring from the string. Counts the actual characters and not unicode surrogate pairs

#### removeHash(str)

Removes `#` symbol from the beginig of the string

#### removeQuotes(str)

Removes `'` or `"` quotes form the begining and end of the string

#### toCamelCase(str)

Transfroms `_` or `-` cases into camelCase

#### pluralize(single, plural, opts)

Return the function that accepts a number and return a string with corresponded word.

Optios are:

* __zeroIsEmpty__ – boolean, default false. If true return empty string when number is zero.

#### slugify(str)

Returns slugified string

License MIT

© velocityzen

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