# @nexssp/min

> Just minimize safely, FAST all src files to dist folder individually with the same name..

Latest version **1.0.6** (published 2021-05-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nexssp/min
pnpm add @nexssp/min
yarn add @nexssp/min
bun add @nexssp/min
```

Provides the command `nexssp-min`.

## 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.6 |
| Published | 2021-05-01 |
| First published | 2021-05-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | mapoart@gmail.com |
| Maintainers | nexss |
| Keywords | uglify, minify, easy, safely, js, nexss |

## Links

- npm: https://www.npmjs.com/package/@nexssp/min
- Repository: https://github.com/nexssp/min
- Homepage: https://nexss.com
- Issues: https://github.com/nexssp/min/issues
- Funding: https://www.paypal.com/paypalme/mapoart
- npm.io page: https://npm.io/package/@nexssp/min

## Dependencies (3)

- [terser](https://npm.io/package/terser.md) ^5.7.0
- [fast-glob](https://npm.io/package/fast-glob.md) ^3.2.5
- [@nexssp/logdebug](https://npm.io/package/@nexssp/logdebug.md) ^1.0.11

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.6 (latest) — 2021-05-01
- 1.0.5 — 2021-05-01
- 1.0.4 — 2021-05-01
- 1.0.3 — 2021-05-01
- 1.0.2 — 2021-05-01
- 1.0.1 — 2021-05-01

## README

# @nexssp/min

## Installation

```sh
npm i @nexssp/min -D # install for devDependencies
```

Just **FAST** minify/compress src to dist folder by one command.

![image](https://user-images.githubusercontent.com/53263666/116790584-3e8a8500-aab5-11eb-9aee-dee90f7ae5cb.png)

## CLI or package.json

```sh
npx @nexssp/min # it will just compress js files from ./src/ to ./dist/
npx @nexssp/min ./source/ ./destination/ # change source and destination
```

## API Example

```js
const { compress } = require("@nexssp/min");

(async () => {
  const result = await compress(from, to, { glob });

  result.forEach((r) =>
    ok(
      `${bold(yellow(r.file))} ${r.length} => ${r.compressed.length} ${bold(
        "(" + r.compressed.percentage + "%)"
      )}`
    )
  );
})();
```

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