# trnct

> Truncate all specified vowels from given word unless it is the first character

Latest version **1.0.0** (published 2019-05-29) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2019-05-29 |
| First published | 2019-05-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Dario Vladovic |
| Maintainers | vladimyr |
| Keywords | truncate, vowels |

## Links

- npm: https://www.npmjs.com/package/trnct
- Repository: https://github.com/vladimyr/trnct
- Issues: https://github.com/vladimyr/trnct/issues
- npm.io page: https://npm.io/package/trnct

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-05-29

## README

# trnct

[![build status](https://badgen.net/travis/vladimyr/trnct/master)](https://travis-ci.com/vladimyr/trnct) [![install size](https://badgen.net/packagephobia/install/trnct)](https://packagephobia.now.sh/result?p=trnct) [![npm package version](https://badgen.net/npm/v/trnct)](https://npm.im/trnct) [![github license](https://badgen.net/github/license/vladimyr/trnct)](https://github.com/vladimyr/trnct/blob/master/LICENSE) [![js semistandard style](https://badgen.net/badge/code%20style/semistandard/pink)](https://github.com/Flet/semistandard)

> Truncate vowels ~ `e`ℹ️🅾️

[![forthebadge](https://forthebadge.com/images/badges/as-seen-on-tv.svg)](https://forthebadge.com) [![forthebadge](https://forthebadge.com/images/badges/you-didnt-ask-for-this.svg)](https://forthebadge.com)

## Instalation

    $ npm install trnct

## Usage

```js
const trnct = require('trnct');
trnct('vowels');
//=> 'vwls'
```

## API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

#### Table of Contents

-   [trnct](#trnct)
    -   [Parameters](#parameters)
    -   [Examples](#examples)

### trnct

Truncate all specified vowels from given word unless it is the first character

#### Parameters

-   `str` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** input
-   `vowels` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))** vowels to truncate (optional, default `['e','i','o']`)

#### Examples

```javascript
trnct('extension');
//=> 'extnsn'
trnct('extension', 'ei');
//=> 'extnson'
```

Returns **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** truncated string

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