# smooshjs

> Compiles javascript modules using cjs and amd into a single file

Latest version **0.2.10** (published 2016-01-21) · ISC license · 0 weekly downloads

## Install

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

Provides the command `smoosh`.

## 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.2.10 |
| Published | 2016-01-21 |
| First published | 2015-11-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Michael Wingfield |
| Maintainers | kenoshen |
| Keywords | npm, javascript, compile, amd, commonjs |

## Links

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

## Dependencies (3)

- [fs](https://npm.io/package/fs.md) 0.0.2
- [path](https://npm.io/package/path.md) ^0.12.7
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.2.10 (latest) — 2016-01-21
- 0.2.9 — 2015-11-03
- 0.2.8 — 2015-11-03
- 0.2.7 — 2015-11-03
- 0.2.6 — 2015-11-03
- 0.2.5 — 2015-11-03
- 0.2.4 — 2015-11-03
- 0.2.2 — 2015-11-03
- 0.2.1 — 2015-11-03
- 0.2.0 — 2015-11-03
- 0.1.1 — 2015-11-03
- 0.1.0 — 2015-11-02

## README

# smooshjs
A tool to compile a collection of javascript modules into a single library.

## Install
    npm install -g smooshjs

## Usage (command line)
    smoosh [-cjs, -amd] <path-to-main-module.js> [path-to-output]

For example:

    smoosh -cjs test/resources/cjs.entrypoint.js test/output/

## Usage (within a node app/script)
    var smooshjs = require("smooshjs");

    var result = smooshjs("-cjs", "-amd", "path/to/main.js", "path/to/output.js");

    if (result.code === 0){
        // everything went ok!
    } else {
        // something failed
        console.error(result.output);
    }

## Tests
To run all the tests

    node mocha test

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