# trimer

> A trim method that allows to trim multiple characters at both ends of a string

Latest version **1.0.1** (published 2018-09-27) · GPL-3.0-or-later license · 0 weekly downloads

## Install

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

## 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-09-27 |
| First published | 2018-09-26 |
| Weekly downloads | 0 |
| License | GPL-3.0-or-later |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 38.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tiago F. Jesus |
| Maintainers | tiagofilipe12 |
| Keywords | trim |

## Links

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

## Recent versions

- 1.0.1 (latest) — 2018-09-27
- 1.0.0 — 2018-09-26

## README

# trimer

Removes all characters from the left and right end of a string given an array
of characters or a string with one character only.

[![Build Status](https://travis-ci.org/tiagofilipe12/trimer.svg?branch=master)](https://travis-ci.org/tiagofilipe12/trimer)
[![codecov](https://codecov.io/gh/tiagofilipe12/trimer/branch/master/graph/badge.svg)](https://codecov.io/gh/tiagofilipe12/trimer)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/8f2c9136fac143819d16daaa41af8413)](https://www.codacy.com/app/tiagofilipe12/trimer?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=tiagofilipe12/trimer&amp;utm_campaign=Badge_Grade)
[![npm version](https://badge.fury.io/js/trimer.svg)](https://badge.fury.io/js/trimer)

## Install

```
npm install trimer
```

## Usage

### With arrays
```js
const trimer = require('trimer')

trimer("  bbbbbtest ////aaaaa", ["/", " ", "a", "b"])
// 'test'
```

### With strings
```js
const trimer = require('trimer')

trimer("/test////", "/")
// 'test'
```

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