# minify-all-js-single-quote

> A tool that minifies all .js files in a folder and its nested folders

Latest version **0.1.3** (published 2022-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install minify-all-js-single-quote
pnpm add minify-all-js-single-quote
yarn add minify-all-js-single-quote
bun add minify-all-js-single-quote
```

Provides the command `minify-all-js`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2022-05-06 |
| First published | 2022-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Adones Pitogo |
| Maintainers | ronaldo-caetano |
| Keywords | minify, all, javascript, uglify, uglifyjs, gcc, yui, sqwish, csso, css, cli, command, line, js, min, dist, reduce |

## Links

- npm: https://www.npmjs.com/package/minify-all-js-single-quote
- Repository: https://github.com/RonaldoCaetano/node-minify-all-js
- Homepage: https://github.com/RonaldoCaetano/node-minify-all-js#readme
- Issues: https://github.com/RonaldoCaetano/node-minify-all-js/issues
- npm.io page: https://npm.io/package/minify-all-js-single-quote

## Dependencies (3)

- [promise.series](https://npm.io/package/promise.series.md) ^0.2.0
- [@node-minify/core](https://npm.io/package/@node-minify/core.md) ^6.1.0
- [@node-minify/terser](https://npm.io/package/@node-minify/terser.md) ^6.1.0

## 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

- 0.1.3 (latest) — 2022-05-06
- 0.1.2 — 2022-05-06
- 0.1.1 — 2022-05-06
- 0.1.0 — 2022-05-06

## README

# minify-all-js-single-quote

A function that minifies your javascript files (recursively).
**minify-all-js-single-quote** was designed to reduce the size of your project's `node_modules` directory. But it can also be used to minify any js files. By giving it a directory, `minify-all-js` will walk through the depth of your folders and minify all the javascript that it sees.

It's a new version from this [package](https://www.npmjs.com/package/minify-all-js), just adding the quote-style option

### Installation

    > npm i -g minify-all-js-single-quote

### Run CLI

    > minify-all-js [folder] [-j] [-m] [-M] [-p]

##### Sample

    > minify-all-js ./node_modules -j -m -M -p

Use CLI options:
 - `-j` or `--json` to compress json files as well. (default: `false`)
 - `-m` or `--module` to set terser module option to `true` for ES6 files (default: `false`)
 - `-M` or `--mangle` to set terser mangle option to `true` (default: `false`)
 - `-p` or `--packagejson` to clean up extra fields from package.json files (default: false)
 - `-a` or `--all` to try to compress all files including binary/executable js files without `.js` extension (default: false)

### Run programatically

```js
  var promise = minifyAllJs([directory], {
    compress_json: true, // -j in cli
    module: true,        // -m in cli
    mangle: true,        // -M in cli
    packagejson: true,   // -p in cli
    all_js: true         // -a in cli
  })
```

`minifyAllJs` function returns a **promise**

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