# string-minify

> Simple string (file-content) minifier. This helper removes all extra whitespaces, tabs, newlines and trims the string.

Latest version **1.0.1** (published 2019-08-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install string-minify
pnpm add string-minify
yarn add string-minify
bun add string-minify
```

## 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 | 2019-08-19 |
| First published | 2019-08-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sergey Lysenko |
| Maintainers | soulwish |
| Keywords | node, text, string, minify, uglify, whitespace, space, minifier, uglifier, strings, clean |

## Links

- npm: https://www.npmjs.com/package/string-minify
- Repository: https://github.com/soul-wish/string-minify
- Homepage: https://github.com/soul-wish/string-minify#readme
- Issues: https://github.com/soul-wish/string-minify/issues
- npm.io page: https://npm.io/package/string-minify

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-08-19
- 1.0.0 — 2019-08-19

## README

# string-minify [![Build Status](https://travis-ci.org/soul-wish/string-minify.svg?branch=master)](https://travis-ci.org/soul-wish/string-minify)

> Simple string (file-content) minifier. This helper removes all extra whitespaces, tabs, newlines and trims the string. Please, do not blame me for this one-line module 😉

## Install

```
$ npm install --save string-minify
```

## Usage

```js
const minifier = require('string-minify');

const testString = `Hello world!
I    am   a string!    `;
const idealString = 'Hello world! I am a string!';

console.log(minifier(string) === idealString); // => true
```

## Related

- [grunt-file-minify](https://github.com/soul-wish/grunt-file-minify) - Grunt plugin for simple file minification

## License

MIT © [Sergey Lysenko](http://soulwish.info)

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